-
-
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
docker_24: init at 24.0.5 #225309
docker_24: init at 24.0.5 #225309
Conversation
Thanks for looking into this. When I reviewed changes when 23 was first getting RCs, the primary thing that'll need fixing in the build process is documentation - everything else should apply to 20.x and 23.x. |
What's the state of this one and if there's anything that can help to kick this one forward? |
Thanks for working on this! Any chance we could jump ahead to v24.0.2 at this point? 😇 It has some features in its upgraded Buildkit dependency which I'd like to use (chiefly |
49c5063
to
d5dba53
Compare
It's been stuck behind my time schedule and https://gist.github.com/mikroskeem/14c8f08ac8ad14e3f4f889f9d5a2b427 |
d5dba53
to
5c9df7b
Compare
I'm able to get this building with two small changes: diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix
index 5f76710e21a..51b74bbdf12 100644
--- a/pkgs/applications/virtualization/docker/default.nix
+++ b/pkgs/applications/virtualization/docker/default.nix
@@ -176,7 +176,7 @@ rec {
nativeBuildInputs = [
makeWrapper pkg-config go-md2man go libtool installShellFiles
];
- buildInputs = plugins;
+ buildInputs = [ glibc glibc.static ] ++ plugins;
postPatch = ''
patchShebangs man scripts/build/
@@ -280,7 +280,7 @@ rec {
cliRev = "v${version}";
cliHash = "sha256-Z8bj+TsQVhoQav7+0MQz9Iy4VJCuSX/Cm+sWytev2ns=";
mobyRev = "v${version}";
- mobyHash = "sha256-Z8bj+TsQVhoQav7+0MQz9Iy4VJCuSX/Cm+sWytev2ns=";
+ mobyHash = "sha256-AKS1x0zo+FRpx2HXyM7I+PiwEZj/jCWebd5LIjLw9zc=";
runcRev = "v1.1.7";
runcHash = "sha256-reSC9j9ESjRigItBRytef78XBjmMGsqu0o9qcN2AstU=";
containerdRev = "v1.7.1"; Guessing the duped hash was just a typo, took a bit to figure out! Without adding Logs
I spent some time trying to get the man pages to build, but it's a bit of a pain. The man page generation code is in a separate I see a few options:
Personally, my preference is 1 but I don't know if lack of man pages is a dealbreaker. When 4 happens we can always bring them back, and until then having them gone is pressure for someone (maybe even me) to fix it someday. What do y'all think? |
I generally think going incremental is better than having a working PR open forever (don't let perfect be the enemy of good), so I would rather go with 1. I don't think it's really a deal breaker (since --help is always an option, and otherwise google). We can create a follow-up PR to fix this (probably an issue before) or patch it upstream. |
5c9df7b
to
c4fcd44
Compare
I've opted in for 1. choice - let's get this update out. |
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.
@vito on 4. is there an upstream issue about this ? If I understood correctly (maybe not 😛), only the man generation part is a problem and require use to add glibc
right ?
No. If you try to remove it, you'll see linker complaining about missing |
31fa421
to
3c6cf77
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.
LGTM 🐯
I ran into this issue docker/cli#4437 on unstable due to Go 1.20.6. |
Waiting for someone with permissions to merge, or do additional review. |
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.
Do you mind rebasing on latest master and bumping to 24.0.5? That contains fixes for go 1.20.6. I'll take a proper look after that.
3c6cf77
to
d60504f
Compare
See NixOS#225309 for discussion
d60504f
to
b841b17
Compare
Result of 21 packages built:
|
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, looks good, we can hopefully get man pages working again later. i think we probably want to call this docker_24
rather than docker_24_0
because semver. It's unlikely we'd want 24.0 and 24.1 packaged together.
c7b5cee
to
1c353c5
Compare
Thanks a bunch for doing the work on this, it's really appreciated @mikroskeem |
|
||
patches = [ | ||
|
||
buildInputs = plugins ++ lib.optionals (lib.versionAtLeast version "23") [ |
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.
This doesn't work on aarch64-darwin
:
Description of changes
#223362
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)