-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
buildBazelPackage: use same bazel for deps & build #362195
base: master
Are you sure you want to change the base?
buildBazelPackage: use same bazel for deps & build #362195
Conversation
It should make more sense to use same `bazel` to produce & consume the deps. Produced deps tarball seems to be currently the same if build with or without `enableNixHacks`, at least have verified it for `fcitx5-mozc`. Since we also start using `bazelForBuild.name` for version string it will invalidate the deps, which sounds like a good thing to do on `buildBazelPackage` changes. This will cause a rebuild but relatively few packages are affected.
This comment was marked as outdated.
This comment was marked as outdated.
9aacdc5
to
5cfb1cf
Compare
This comment was marked as outdated.
This comment was marked as outdated.
5cfb1cf
to
f89e75e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Marking this as draft while it's still a work in progress. Ping me when it's ready for review. |
f89e75e
to
6022f67
Compare
@ofborg build bant |
It should make more sense to use same
bazel
to produce & consume the deps.Produced deps tarball seems to be currently the same if build
with or without
enableNixHacks
, at least have verified it forfcitx5-mozc
.Since we also start using
bazelForBuild.name
for version string itwill invalidate the deps, which sounds like a good thing to do on
buildBazelPackage
changes. This will cause a rebuild but relativelyfew packages are affected.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.