Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version module in go.mod incorrect #2

Open
imatmati opened this issue Dec 1, 2018 · 1 comment
Open

Version module in go.mod incorrect #2

imatmati opened this issue Dec 1, 2018 · 1 comment

Comments

@imatmati
Copy link

imatmati commented Dec 1, 2018

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

@straightdave
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@straightdave @imatmati and others