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

.bazelproject with bazel_binary: bazelisk does not seem to work #88

Open
vorburger opened this issue Jan 17, 2024 · 2 comments
Open

.bazelproject with bazel_binary: bazelisk does not seem to work #88

vorburger opened this issue Jan 17, 2024 · 2 comments

Comments

@vorburger
Copy link
Contributor

In salesforce/bazel-eclipse#477 there was a previous discussion re. the whole bazel and bazelisk and what not "bootstrapping story".

https://github.com/salesforce/bazel-vscode-java/blob/main/docs/troubleshoot.md#bazelisk has documentation I wrote about this.

It's been working OK for me locally, but I'm now for fun exploring GitHub Codespaces, and I have reason to believe that a .bazelproject with bazel_binary: bazelisk somehow actually does not seem to work.

If you grab https://github.com/enola-dev/enola/pull/354/files, as of 5317b786bb26f871a6469a90b00c3bab69a727b0, it's "not working", and the log has the java.io.IOException: Cannot run program "bazel": error=2, No such file or directory thing - it appears it's ignoring the bazel_binary: bazelisk which is in in .bazelproject on that PR at that commit (but not on the main branch of that repo, yet).

This isn't blocking, because I can probably work around and hack something for a bazel instead of a bazelisk to be symlink, in a set-up script, later maybe with a Dev Container.

@guw just wanted to let you know, in case this is something you want to look further into; feel free to close.

@vorburger
Copy link
Contributor Author

I can probably work around and hack something f

https://github.com/enola-dev/enola/compare/5317b786bb26f871a6469a90b00c3bab69a727b0..24c37e8e86ba5b4ef4d6e05ef602e542617f5ef5 does the trick (instead of bazel_binary: bazelisk)

@vorburger
Copy link
Contributor Author

enola-dev/enola#544 is a somewhat related issue stating that it didn't work for @lbovet who "had bazelisk but not the bazel symlink".

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