Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2839

"go mod tidy" fails on Go versions < 1.16

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • Hide

      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?

      Show
      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.

      Attachments

        Activity

          People

            preston.vasquez@mongodb.com Preston Vasquez
            preston.vasquez@mongodb.com Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: