quote icon indicating copy to clipboard operation
quote copied to clipboard

Version module in go.mod incorrect

Open imatmati opened this issue 7 years ago • 1 comments

Hi,

AFAIK the module version should read in the file go.mod when version is above 1 :

If the module is version v2 or higher, the major version of the module must be included in both the module path in the go.mod file (e.g., module example.com/my/mod/v2) and the package import path (e.g., import "example.com/my/mod/v2/foo").

But version in go.mod seems to be missing. Am I wrong ? Have a nice day

imatmati avatar Dec 01 '18 17:12 imatmati

I also have the similar question. I think "v3" in the import path is misleading. I think it is an independent module with the name "quote/v3", not the v3 version of mod "quote".

After reading "Using Go Modules", section "Adding a dependency on a new major version", I thought we could use same module but different versions at the same time. Then I tried to do this with a single mod but failed. So I doubt "quote" and "quote/v3" are different and independent modules.

straightdave avatar Sep 27 '19 10:09 straightdave