-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
dependabot-cli: 1.41.0 -> 1.57.0, pin image dependencies #352866
Conversation
6caf319
to
85f6839
Compare
…mages By default, the dependabot CLI fetches the latest versions of two images it depends on, with the underlying assumption that the CLI is also a recent version. This of course causes problems if the CLI is outdated and doesn't support the latest images. This commit introduces a separate wrapper binary that pins these images to the latest version of them at the time of updating.
85f6839
to
393342a
Compare
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.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 352866
x86_64-linux
✅ 1 package built:
- dependabot-cli
|
@philiptaron Since dependabot requires the docker daemon to run anyways, I think it's fine to not include it, especially also to avoid extra closure size. |
You got the green check. I think I would have made this be a passthru, separate derivation with the extra dependency, but you do you. |
Ah yeah that's fair, I guess let's merge this as is for now, but consider doing that in the future if this becomes more complex, or people demand smaller closure sizes :) |
Requested a review from the maintainer manually because ofborg was apparently too slow. Let us know if you have any input @l0b0, happy to address retroactively! |
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.
Thank you!
dockerTools, | ||
makeWrapper, |
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.
Nit: These should be sorted alphabetically with the rest.
# Create a wrapper that pins the docker images that are depended upon | ||
makeWrapper $out/bin/dependabot $out/bin/dependabot-pinned \ | ||
--run "docker load --input ${updateJobProxy}" \ | ||
--add-flags "--proxy-image=dependabot-update-job-proxy:${tag}" \ | ||
--run "docker load --input ${updaterGitHubActions}" \ | ||
--add-flags "--updater-image=dependabot-updater-github-actions:${tag}" |
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.
Could this be a separate output, or behind a feature flag like withDockerImages
?
The automated GitHub workflow updates have been broken for some time See NixOS/nixpkgs#352866 and NixOS/nixpkgs#354085
The automated GitHub workflow updates were broken for some time due to dependabot's images fetched at runtime went out of sync with the binary. While updating dependabot fixed it for now, a more permanent fix is to use the version of dependabot that pins the images at build time, introduced in NixOS/nixpkgs#352866 and NixOS/nixpkgs#354085
The automated GitHub workflow updates were broken for some time due to dependabot's images fetched at runtime went out of sync with the binary. While updating dependabot fixed it for now, a more permanent fix is to use the version of dependabot that pins the images at build time, introduced in NixOS/nixpkgs#352866 and NixOS/nixpkgs#354085
The automated GitHub workflow updates were broken for some time due to dependabot's images fetched at runtime went out of sync with the binary. While updating dependabot fixed it for now, a more permanent fix is to use the version of dependabot that pins the images at build time, introduced in NixOS/nixpkgs#352866 and NixOS/nixpkgs#354085
Noticed that the dependabot updates for https://github.com/NixOS/nixpkgs-vet aren't working anymore. Tracked it down to it needing a dependabot CLI update, but to prevent future breakage, this PR also introduces a
dependabot-pinned
wrapper that pins the docker images.Ping @NixOS/nixpkgs-vet
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
This work is sponsored by Antithesis ✨
Add a 👍 reaction to pull requests you find important.