-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix build hook error for libstore library users #8517
Merged
edolstra
merged 1 commit into
NixOS:master
from
hercules-ci:fix-build-hook-error-for-lib-users
Jun 16, 2023
Merged
Fix build hook error for libstore library users #8517
edolstra
merged 1 commit into
NixOS:master
from
hercules-ci:fix-build-hook-error-for-lib-users
Jun 16, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roberth
requested review from
thufschmitt,
fricklerhandwerk and
edolstra
as code owners
June 14, 2023 21:06
github-actions
bot
added
with-tests
Issues related to testing. PRs with tests have some priority
and removed
store
Issues and pull requests concerning the Nix store
labels
Jun 14, 2023
roberth
commented
Jun 14, 2023
Ericson2314
reviewed
Jun 14, 2023
This comment was marked as resolved.
This comment was marked as resolved.
roberth
force-pushed
the
fix-build-hook-error-for-lib-users
branch
2 times, most recently
from
June 14, 2023 23:14
93667d5
to
4cbd60f
Compare
Ericson2314
reviewed
Jun 14, 2023
roberth
force-pushed
the
fix-build-hook-error-for-lib-users
branch
3 times, most recently
from
June 14, 2023 23:37
b231749
to
c75784e
Compare
Ericson2314
reviewed
Jun 15, 2023
A library shouldn't require changes to the caller's argument handling, especially if it doesn't have to, and indeed we don't have to. This changes the lookup order to prioritize the hardcoded path to nix if it exists. The static executable still finds itself through /proc and the like.
roberth
force-pushed
the
fix-build-hook-error-for-lib-users
branch
from
June 15, 2023 12:32
c75784e
to
d2696cd
Compare
thufschmitt
approved these changes
Jun 16, 2023
Triaged in Nix team meeting:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-06-16-nix-team-meeting-minutes-63/29316/1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
A library shouldn't require changes to the caller's argument handling, especially if it doesn't have to, and indeed we don't have to.
This changes the lookup order to prioritize the hardcoded path to nix if it exists. The static executable still finds itself through /proc and the like.
Context
Encountered in hercules-ci-agent when run on a single user installation.
A solution is also required for #7735. It currently contains a workaround, whereas this is a general solution.
nixos-option
probably also suffers from this problem.May be obsoleted by #1221, but a simple bugfix should take priority I think.
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.