-
Notifications
You must be signed in to change notification settings - Fork 84
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
Improve documentation of build_file
and add tests
#35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want this by default. The Bazel manual warns against blanket depending on everything (including in bold here, see also here), because it means Bazel will have to check more files at each build to see what it needs to rebuild. It's also a very blunt tool, when typically only a few select files really need to be part of the dependency graph.
What's your use case for depending on everything in a Nix package?
8cb53e3
to
af0c922
Compare
:output
build_file
and add tests
Point taken, I’ve instead opted to improve the user documentation for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
CircleCI is red, #36 needs to be merged before it prints the error logs so I can debug this. |
I guess I'm happy with #9 being closed because it's documented in this PR how to access the other files. |
06b8094
to
b11b493
Compare
Adds some user documentation on how to generate bazel targets for the repositories generated by `nixpkgs_package`. Also adds two tests to check whether this actually works as documented.
b11b493
to
4a75b2d
Compare
Nice, had some bashisms in the |
The
BUILD
file in the repository created bynixpkgs_package
hadthree filegroups that exposed
bin
,include
andlib
, but nonethat exposed all files of the nix build output.
We introduce a new target named
:output
that does just that.fixes #9