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
Docker build rule with deb packages tries to use xzcat which might not exist #611
Comments
Yes we should output a clearer message. Unfortunately LZMA compression is not supported in python 2.7 so we have to use that hack :( |
What systems does this hack work on? To get it to work on my osx machine I had to install xzcat from macports and then symlink it in /usr/bin because bazel runs 'env -' before commands and doesn't inherit my customized path. And while this is fine for my local work, it doesn't seem all that scaleable for using in a shared package. Would the eventual solution be to include xzcat (or an equivalent binary) as a tool in the genrule? |
This works on my Darwin machine, and on my Linux machine. Finally, the correct solution is to use a python LZMA library but I haven't found a good one and currentlyt don't have time to do it. |
I installed bazel from head and am not seeing it use my customized environment.
It still seems that it is running with the empty environment
|
oops... |
*** Reason for rollback *** broke Speckle and Dataflow *** Original change description *** [docker] Print a clearer message when xzcat cannot be found and is needed Also use the default shell env for docker deb files. Fixes #611. -- MOS_MIGRATED_REVID=108105646
It has been rolled-back |
This seems to have been rolled forward again and is broken for me on OS X. The issue that I am seeing is Repo:
It seems to still be clearing the environment as |
This is required to fully fix bazelbuild#611.
I've made a fix to the issue @endobson described above. |
@simonhorlick I would be glad to review it :) |
@damienmg I've rebased against the most recent commit and pushed to Gerrit if you'd like to review there: https://bazel-review.googlesource.com/3492 |
I suggest we re-open this. We've been bit by the dependency on system E.g. on macOS with
cc: @katre @laszlocsomor |
#4319 is related. |
My host machine does not have xzcat installed so when I try to use the docker build rule with a deb package as a source I get the following.
The text was updated successfully, but these errors were encountered: