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

replace directive in go.mod breaks go install github.com/sourcegraph/zoekt/cmd/zoekt@latest #643

Closed
henrik242 opened this issue Sep 13, 2023 · 1 comment · Fixed by #648
Assignees

Comments

@henrik242
Copy link

Commit 3ce1f2b breaks go install github.com/sourcegraph/zoekt/cmd/zoekt@latest by introducing a replace directive in go.mod.

The error I get is:

go: github.com/sourcegraph/zoekt/cmd/zoekt@latest (in github.com/sourcegraph/zoekt@v0.0.0-20230912152407-3ce1f2b24c80):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Replace directives can be problematic for users. Is there a suggested workaround for this?

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

Successfully merging a pull request may close this issue.

3 participants