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

x/tools/gopls: filter out overlays in the module cache #71816

Open
findleyr opened this issue Feb 18, 2025 · 1 comment
Open

x/tools/gopls: filter out overlays in the module cache #71816

findleyr opened this issue Feb 18, 2025 · 1 comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@findleyr
Copy link
Member

In #71075, it is suggested that the Go command return errors if overlays are in the module cache.
Right now, gopls may construct such overlays if the user opens a module cache file (which they would do when jumping to definition).

We should filter out overlays for module cache files. If the user edits a module cache file, we should surface an error.

Putting this in the v0.19.0 milestone, to be done before the release of Go 1.25.

Gopls can definitely filter out overlays from the module cache (perhaps reporting an error back to the user). Then it would be safe for the Go command to fail in that case.

Originally posted by @findleyr in #71075

@findleyr findleyr added this to the gopls/v0.19.0 milestone Feb 18, 2025
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Feb 18, 2025
@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gabyhelp gabyhelp added the FeatureRequest Issues asking for a new feature that does not need a proposal. label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants