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
No such package 'tools/jdk': BUILD file not found on package path #187
Comments
Note, more often than not I see an error about
|
You either need: Or you need a 'tools' directory in your workspace. |
I have a .bazelrc. I nuked it and recompiled Bazel and it worked after that. Maybe I got mine in a bad state or pointing to the wrong base workspace. Thanks. |
How would you recommend handling this in a CI environment? Should I have my CI script rm the ~/.bazelrc file? Should I ensure the file exists but is empty? Right now the CI server pulls Bazel from head and rebuilds it for every run, should I do a global install on the CI user to have a fixed location for Bazel that I can manage? Maybe I should bring Bazel's tools directory into my repo, is that the preferred method? Thanks so much |
achew22: For reproducible build, I would encourage you to use a fixed On Mon, Jun 1, 2015 at 7:32 AM achew22 notifications@github.com wrote:
|
Occured the same issues. shall we find the tools directory inside ~/.bazel/tools or what ever. if not present there, may we download the latest release file into that default directory? |
There should be a ~/.bazel/base_workspace/tools directory if you've run the installer with --user=$HOME. What does |
It would be helpful if the installer outputted a new version of ~/.bazelrc (named say .bazelrc.new) if the file is already present. and displayed a warning about it. This works very well with the .pacnew and .pacsave files in Arch Linux https://wiki.archlinux.org/index.php/Pacnew_and_Pacsave_files. |
Normally the installer does always overwrite the previous location (with --user, it is at ~/.bazel/etc/bazel.bazelrc IIRC). And the home one is just a symlink. If present, the installer check if the file contains the correct base workspace and output a warning if not. |
So the reason it did not go smoothly for me was that I was switching from git-tip to the binary release. I got the warning, got confused, found this bug ticket, corrected paths in the file (figuring out what they should be (where Bazel installed itself) is the hardest part, maybe the error message could tell me that?), done. |
so is this fixed? I am having the same problem but I have not found any solution yet!? I am using archlinux. In my ubuntu it is fine. |
Is specific issue is resolved can you open a separate issue for yours? |
I tried this with a fresh Bazel installation. Steps to repro:
The text was updated successfully, but these errors were encountered: