fix(ci): pin which Nix Renovate's post-upgrade tasks use - #1107
Merged
Conversation
Renovate's Go dependency PRs fail their post-upgrade tasks with "error: experimental Nix feature 'nix-command' is disabled", so nix run .#tidy and nix run .#generate never refresh our vendor hashes or generated code. This entrypoint installs Nix from apt and configures it through /etc/nix/nix.conf. Renovate's Nix manager installs its own through containerbase whenever it updates flake.lock, and that one lands earlier on PATH and reads its config from containerbase's cache. This has always been possible but giving lock file maintenance a higher priority in crossplane#1096 moved those updates to the front of the run, where they now poison every post-upgrade task after them. This commit has the entrypoint publish a crossplane-nix launcher that pins both the binary and the config directory it reads, and points the post-upgrade tasks at it. RENOVATE_ALLOWED_COMMANDS no longer permits a bare nix, so a command still spelled that way fails on the allowlist instead of silently running against the wrong Nix. Signed-off-by: Jared Watts <jbw976@gmail.com>
phisco
approved these changes
Aug 5, 2026
5 tasks
This file contains hidden or 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
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.
Description of your changes
This PR applies the same fix from crossplane/crossplane#7709 to crossplane-runtime, which has been verified to work OK for CC in crossplane/crossplane#7707 (comment).
I have:
./nix.sh flake checkto ensure this PR is ready for review.Added or updated unit tests.Linked a PR or a docs tracking issue to document this change.Addedbackport release-x.ylabels to auto-backport this PR.Need help with this checklist? See the cheat sheet.