-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
dapper: init at v0.4.1 #62289
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
dapper: init at v0.4.1 #62289
Conversation
homepage = https://github.com/rancher/dapper; | ||
license = licenses.asl20; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ ngerstle ]; |
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'm happy to give over being maintainer to more active/invested individuals
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.
Same applies here - if you want I can take it over maintenance wise. I also would like to move on with k3s
after that as well. Did you start working on it by any chance?
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.
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 have a branch, but didn't create PR yet.
c53f843
to
2d09ad4
Compare
2d09ad4
to
957213e
Compare
@GrahamcOfBorg build dapper |
Oh right, @ngerstle-cognite: You need to add the package to all-packages.nix as well. This can be as part of the same commit as the package itself. |
957213e
to
6387ffb
Compare
Gotcha- perhaps we should add it to CONTRIBUTING.md or is that intended to contain only style requirements? |
@ngerstle-cognite Well, the all-packages.nix is kinda required, otherwise it's not addressable as an attribute. Also, if you look in CONTRIBUTING.md there's a link named "submit changes to nixpkgs" which goes to the manual: https://nixos.org/nixpkgs/manual/#chap-submitting-changes The manual states (among other things): |
Ah- missed that link. Thanks for guiding me through- I'll update my other PR (https://github.com/NixOS/nixpkgs/pull/61190/files) and keep the steps in mind going forward. |
@GrahamcOfBorg build dapper |
Reviewed points
Possible improvementsThe URL path syntax will probably go away soon, so one improvement could be to change meta.homepage to be a string. But this is for me a minor note since on deprecation it will probably result in a big treewide switch so one more place is not that bad. But when I run the program with the flag I'm guessing here, but it didn't help for me to add VERSION as build-flag or envoronment variable: https://github.com/rancher/dapper/blob/cdee59b8fa29579b357fc11cef9a597a1308f3bf/scripts/build But I have not dug in deep to see where it's set. |
|
I tried to apply this diff that I made, and with that the version appears alright. I think we should do it this way, looks better: diff --git a/pkgs/development/tools/dapper/default.nix b/pkgs/development/tools/dapper/default.nix
index 5d702cd5d71..e4b822253f2 100644
--- a/pkgs/development/tools/dapper/default.nix
+++ b/pkgs/development/tools/dapper/default.nix
@@ -17,6 +17,10 @@ buildGoPackage rec {
sha256 = "03rmkmlvhmfwcln5v1rqww1kirxm0d1p58h6pj8f5fnhk9spb162";
};
+ patchPhase = ''
+ substituteInPlace main.go --replace 0.0.0 ${version}
+ '';
+
meta = with lib; {
description = "Docker Build Wrapper";
homepage = https://github.com/rancher/dapper;
@@ -25,4 +29,3 @@ buildGoPackage rec {
maintainers = with maintainers; [ ngerstle ];
};
}
- |
@etu updated, thanks! |
bc47580
to
010dc9c
Compare
010dc9c
to
123a1c2
Compare
@ngerstle-cognite If you can squash it to two commits (one for creating you as mantainer in the maintainer list) and one for the package it would be great, then I'll merge this. I can squash through the github ui, but that would squash it all to one commit which isn't best practice of what we want in this case. |
0cb3376
to
f9d83f4
Compare
Motivation for this change
Add the dapper (https://github.com/rancher/dapper) tool.
The dapper tool wraps docker and eases building of software (such as k3s) inside of docker containers for consistency.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)