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

goroot alias directory somehow? #4152

Open
jmhodges opened this issue Oct 22, 2024 · 2 comments
Open

goroot alias directory somehow? #4152

jmhodges opened this issue Oct 22, 2024 · 2 comments

Comments

@jmhodges
Copy link
Contributor

In Bazel 8.0, the path separator will change from ~ to +. (See the 7.3.0 release notes and associated PR)

That means the documentation for various IDE settings (and I assume other bits?) will have to change. It would be nice to have some prettier, more stable alias for the GOROOT and similar things needed. I'm not sure how much power bazel provides for this, though, so it's possible this ticket just needs to be closed or turned into a update-the-docs-when-change-lands ticket.

@fmeum
Copy link
Member

fmeum commented Oct 22, 2024

I would like to recommend using https://github.com/buildbuddy-io/bazel_env.bzl instead of maintaining something like this in rules_go. It's still a somewhat new ruleset, but please give it a try and provide feedback.

@jmhodges
Copy link
Contributor Author

Hm, I'm not sure how to make that work in the configuration of vscode workspaces, and so on where I would need it for my aliasing. Using an extension that loads direnv doesn't seem to work because it wouldn't necessarily fire before the Go extension settings are loaded.

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

2 participants