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

go.mod FilePath ReplaceDirective is missing when using the go-deps bzlmod extension #1775

Closed
stefanpenner opened this issue Apr 5, 2024 · 1 comment · Fixed by #1776
Closed

Comments

@stefanpenner
Copy link
Contributor

What version of gazelle are you using?

<= 0.36.0

What version of rules_go are you using?

<= 0.46.0

What version of Bazel are you using?

<= 7.1.0

Does this issue reproduce with the latest releases of all the above?

yes, it's a feature gap

What operating system and processor architecture are you using?

All

What did you do?

Attempted to use go's FilePath ReplaceDirective in a go bazel project whos dependencies are managed by the go_deps bzlmod extension.

module github.com/bazelbuild/bazel-gazelle/tests/bcr/go_mod

go 1.21.5

require (
	example.org/hello v1.0.0
        // ... snip ...
)

// ... snip ...

replace example.org/hello => ../../../fixtures/hello

What did you expect to see?

The ability to develop locally on the replaced example.org/hello go.mod residing at ../../../fixtures/hello.

What did you see instead?

The Feature does not exist, so it simply fails saying the feature is not support

@stefanpenner
Copy link
Contributor Author

FYI: I've also been working on this here

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.

1 participant