-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
benchexec: 3.21 → 3.27 #374278
base: master
Are you sure you want to change the base?
benchexec: 3.21 → 3.27 #374278
Conversation
}; | ||
|
||
pyproject = true; | ||
|
||
postPatch = '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-warn 'setuptools ==' 'setuptools >=' |
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.
Suggestion: I think this should be replace-fail
to let us know when this can be removed if the project moves to a different build system, updates this line themselves, etc. Is there a reason you used "only" replace-warn
?
--replace-warn 'setuptools ==' 'setuptools >=' | |
--replace-fail 'setuptools ==' 'setuptools >=' |
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.
If they change the version requirement and/or build system, and BenchExec can be built even with the replacement not being successful, I'd rather get a warning, rather than a failure. In some sense it would be an unnecessary failure. The build would just fail because some string cannot be replaced in a file, not because BenchExec actually failed to build. If the replacement is crucial, and without it the build actually fails, we find out very soon after, and if even that is not enough, there's a version test that is relatively cheap also, which would catch actual build failure just another bit later in the process.
So, I wanted to be lax, because there are more, better, verification mechanisms in place.
However, if this turns out to block the PR, I am happy to go with failure.
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.
It is a question between convenience and precision, I would say. It is convenient to have it as -warn
, and it will force us to fix the package immediately when it fails to perform the replacement.
Your arguments are good enough for me. Not sure what the generally preferred option for nixpkgs would be in this case. We can leave this conversation open and someone might chime in.
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 would also lean towards --replace-fail
, if only because otherwise this would likely remain in the package long after it stops being necessary.
|
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/
)