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

bzlmod: Stable go_sdk path available to IDEs e.g. VScode #3877

Open
aran opened this issue Feb 28, 2024 · 0 comments
Open

bzlmod: Stable go_sdk path available to IDEs e.g. VScode #3877

aran opened this issue Feb 28, 2024 · 0 comments

Comments

@aran
Copy link

aran commented Feb 28, 2024

Users of IDEs such as VSCode may want to use a rules_go sdk for tooling, so that the tools use the same go as the code. This path should be stable across versions of rules_go. In bzlmod rules_go, this regressed.

What version of rules_go are you using?

0.46.0

What version of gazelle are you using?

0.35.0

What version of Bazel are you using?

7.0.2

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

Yes

What operating system and processor architecture are you using?

macOS / arm

Any other potentially useful information about your toolchain?

Using bzlmod, VSCode

What did you do?

Update to bzlmod rules go while using vscode

What did you expect to see?

No IDE errors relating to ${workspaceFolder}/bazel-${workspaceFolderBasename}/external/go_sdk

What did you see instead?

${workspaceFolder}/bazel-${workspaceFolderBasename}/external/go_sdk is missing.
It can be replaced as a workaround by a long path that includes some cruft and the rules_go version, i.e. ${workspaceFolder}/bazel-${workspaceFolderBasename}/external/rules_go0.46.0go_sdk~main___download_0

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