[GODRIVER-2839] "go mod tidy" fails on Go versions < 1.16 Created: 10/May/23  Updated: 18/May/23  Resolved: 18/May/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Preston Vasquez Assignee: Preston Vasquez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Running go mod tidy on projects that import the Go Driver with Go version < 1.13 fails due to a Go 1.13 being dropped by the package https://github.com/klauspost/compress :

ubuntu@ip-10-0-108-33:~/mongo-go-driver/internal/test/compilecheck$ go mod tidy
go.mongodb.go/mongo-driver/internal/test/compilecheck imports
        go.mongodb.org/mongo-driver/mongo imports
        go.mongodb.org/mongo-driver/x/mongo/driver imports
        github.com/klauspost/compress/zstd tested by
        github.com/klauspost/compress/zstd.test imports
        github.com/klauspost/compress/zip imports
        io/fs: malformed module path "io/fs": missing dot in first path element
go.mongodb.go/mongo-driver/internal/test/compilecheck imports
        go.mongodb.org/mongo-driver/mongo imports
        go.mongodb.org/mongo-driver/x/mongo/driver imports
        github.com/klauspost/compress/zstd tested by
        github.com/klauspost/compress/zstd.test imports
        github.com/klauspost/compress/zip tested by
        github.com/klauspost/compress/zip.test imports
        testing/fstest: malformed module path "testing/fstest": missing dot in first path element

Investigate what changes we can make to restore that support in the vendored klauspost/compress package.



 Comments   
Comment by Githook User [ 18/May/23 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2839 Document 1.13 non-support for go mod tidy (#1262)

Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/a4e42811fbf8c37b7aeb3cdb997026440f91b889

Generated at Thu Feb 08 08:39:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.