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

Fix module directive in go.mod #64

Open
alfa-alex opened this issue May 11, 2021 · 1 comment
Open

Fix module directive in go.mod #64

alfa-alex opened this issue May 11, 2021 · 1 comment

Comments

@alfa-alex
Copy link

I use to install binaries like these via go get. This is impossible due to the following error:

go get: github.com/rogchap/wombat@none updating to
	github.com/rogchap/[email protected]: parsing go.mod:
	module declares its path as: wombat
	        but was required as: github.com/rogchap/wombat

This is because the module directive in the go.mod file is written as:

module wombat

whereas it would correctly be:

module github.com/rogchap/wombat

Are there any reasons not to change the module directive?

@alfa-alex
Copy link
Author

Now that go get is deprecated to be used for that purpose, let me point out that the problem also exists with go install:

go install github.com/rogchap/wombat@latest

go install: github.com/rogchap/wombat@latest: github.com/rogchap/[email protected]: parsing go.mod:
	module declares its path as: wombat
	        but was required as: github.com/rogchap/wombat```

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

1 participant