Skip to content
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

pet: init at 0.3.2 #44033

Merged
merged 1 commit into from Jul 25, 2018
Merged

pet: init at 0.3.2 #44033

merged 1 commit into from Jul 25, 2018

Conversation

kalbasit
Copy link
Member

@kalbasit kalbasit commented Jul 23, 2018

Motivation for this change

pet: CLI Snippet Manager. Simple command-line snippet manager, written in Go.

https://github.com/knqyf263/pet

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.


goPackagePath = "github.com/knqyf263/pet";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use fetchFromGitHub instead of fetchurl because it relies on the hash of the contents of the repository instead of the hash of a tarball, and it would allow us to fix all GitHub src fetchers, if GitHub changes something about how it works.

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

@GrahamcOfBorg build pet

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pet

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin
shrinking /nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin/bin/pet
strip is /nix/store/a3nk8z2i7m7wa3jdckgv710n7j3yx4b5-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin/bin
patching script interpreter paths in /nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin
checking for references to /build in /nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin...
strip is /nix/store/a3nk8z2i7m7wa3jdckgv710n7j3yx4b5-binutils-2.30/bin/strip
/nix/store/a57syhxv4w5b1jx1a57iad9202qcx7pn-pet-0.3.2-bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pet

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin
shrinking /nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin/bin/pet
strip is /nix/store/a245zacjzf3qw0davhvlfarihcy2yyrc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin/bin
patching script interpreter paths in /nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin
checking for references to /build in /nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin...
strip is /nix/store/a245zacjzf3qw0davhvlfarihcy2yyrc-binutils-2.30/bin/strip
/nix/store/pxcsbixmhjph56dvyx6nw8awmy3g4ffn-pet-0.3.2-bin

@kalbasit
Copy link
Member Author

@GrahamcOfBorg build pet

@kalbasit
Copy link
Member Author

@ryantm updated it to use fetchFromGitHub, PTAL.

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

@kalbasit You have to be on an approved list in https://github.com/NixOS/ofborg to issue commands to the bot (security and such!). @GrahamcOfBorg build pet

@kalbasit
Copy link
Member Author

kalbasit commented Jul 24, 2018

@ryantm Thanks for the tip, I'll file a PR to add myself there.

I don't understand why would this PR breaks the eval of arena.

evaluation aborted with the following error message: 'Package ‘arena-1.1’ in /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/pkgs/games/arena/default.nix:62 has an invalid meta attrset:
	 - key 'hydryPlatforms' is unrecognized; expected one of: 
	      ['available', 'badPlatforms', 'branch', 'broken', 'description', 'downloadPage', 'downloadURLRegexp', 'executables', 'homepage', 'hydraPlatforms', 'isBuildPythonPackage', 'isFcitxEngine', 'isGutenprint', 'isIbusEngine', 'knownVulnerabilities', 'license', 'longDescription', 'maintainers', 'name', 'outputsToInstall', 'platforms', 'position', 'priority', 'repositories', 'schedulingPriority', 'tag', 'timeout', 'updateWalker', 'version']
	 - key 'synopsis' is unrecognized; expected one of: 
	      ['available', 'badPlatforms', 'branch', 'broken', 'description', 'downloadPage', 'downloadURLRegexp', 'executables', 'homepage', 'hydraPlatforms', 'isBuildPythonPackage', 'isFcitxEngine', 'isGutenprint', 'isIbusEngine', 'knownVulnerabilities', 'license', 'longDescription', 'maintainers', 'name', 'outputsToInstall', 'platforms', 'position', 'priority', 'repositories', 'schedulingPriority', 'tag', 'timeout', 'updateWalker', 'version'], refusing to evaluate.

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

@kalbasit It probably doesn't, it's much more likely someone broke eval on master. Maybe @peti in 2c72d70

Edit: Fixed it in bc52706 and e7be6e0

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

@GrahamcOfBorg eval

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

@GrahamcOfBorg build pet

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pet

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin
shrinking /nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin/bin/pet
strip is /nix/store/a245zacjzf3qw0davhvlfarihcy2yyrc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin/bin
patching script interpreter paths in /nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin
checking for references to /build in /nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin...
strip is /nix/store/a245zacjzf3qw0davhvlfarihcy2yyrc-binutils-2.30/bin/strip
/nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: pet

Partial log (click to expand)

remote: Finding sources:   1% (4/354)           
remote: Finding sources:   2% (8/354)           
remote: Finding sources:   3% (11/354)           
remote: Finding sources:   4% (15/354)           
remote: Finding sources:   5% (18/354)           
remote: Finding sources:   6% (22/354)           
remote: Finding sources:   7% (25/354)           
remote: Finding sources:   8% (29/354)           
remote: Finding sources:   9% (32/354)           
remote: Finding sources:  10% (36/354)           
remote: Finding sources:  11% (39/354)           
remote: Finding sources:  12% (43/354)           
remote: Finding sources:  13% (47/354)           
remote: Finding sources:  14% (50/354)           
remote: Finding sources:  15% (54/354)           
remote: Finding sources:  16% (57/354)           
remote: Finding sources:  17% (61/354)           
remote: Finding sources:  18% (64/354)           
remote: Finding sources:  19% (68/354)           
remote: Finding sources:  20% (71/354)           
remote: Finding sources:  21% (75/354)           
remote: Finding sources:  22% (78/354)           
remote: Finding sources:  23% (82/354)           
remote: Finding sources:  24% (85/354)           
remote: Finding sources:  25% (89/354)           
remote: Finding sources:  26% (93/354)           
remote: Finding sources:  27% (96/354)           
remote: Finding sources:  28% (100/354)           
remote: Finding sources:  29% (103/354)           
remote: Finding sources:  30% (107/354)           
remote: Finding sources:  31% (110/354)           
remote: Finding sources:  32% (114/354)           
remote: Finding sources:  33% (117/354)           
remote: Finding sources:  34% (121/354)           
remote: Finding sources:  35% (124/354)           
remote: Finding sources:  36% (128/354)           
remote: Finding sources:  37% (131/354)           
remote: Finding sources:  38% (135/354)           
remote: Finding sources:  39% (139/354)           
remote: Finding sources:  40% (142/354)           
remote: Finding sources:  41% (146/354)           
remote: Finding sources:  42% (149/354)           
remote: Finding sources:  43% (153/354)           
remote: Finding sources:  44% (156/354)           
remote: Finding sources:  45% (160/354)           
remote: Finding sources:  46% (163/354)           
remote: Finding sources:  47% (167/354)           
remote: Finding sources:  48% (170/354)           
remote: Finding sources:  49% (174/354)           
remote: Finding sources:  50% (177/354)           
remote: Finding sources:  51% (181/354)           
remote: Finding sources:  52% (185/354)           
remote: Finding sources:  53% (188/354)           
remote: Finding sources:  54% (192/354)           
remote: Finding sources:  55% (195/354)           
remote: Finding sources:  56% (199/354)           
remote: Finding sources:  57% (202/354)           
remote: Finding sources:  58% (206/354)           
remote: Finding sources:  59% (209/354)           
remote: Finding sources:  60% (213/354)           
remote: Finding sources:  61% (216/354)           
remote: Finding sources:  62% (220/354)           
remote: Finding sources:  63% (224/354)           
remote: Finding sources:  64% (227/354)           
remote: Finding sources:  65% (231/354)           
remote: Finding sources:  66% (234/354)           
remote: Finding sources:  67% (238/354)           
remote: Finding sources:  68% (241/354)           
remote: Finding sources:  69% (245/354)           
remote: Finding sources:  70% (248/354)           
remote: Finding sources:  71% (252/354)           
remote: Finding sources:  72% (255/354)           
remote: Finding sources:  73% (259/354)           
remote: Finding sources:  74% (262/354)           
remote: Finding sources:  75% (266/354)           
remote: Finding sources:  76% (270/354)           
remote: Finding sources:  77% (273/354)           
remote: Finding sources:  78% (277/354)           
remote: Finding sources:  79% (280/354)           
remote: Finding sources:  80% (284/354)           
remote: Finding sources:  81% (287/354)           
remote: Finding sources:  82% (291/354)           
remote: Finding sources:  83% (294/354)           
remote: Finding sources:  84% (298/354)           
remote: Finding sources:  85% (301/354)           
remote: Finding sources:  86% (305/354)           
remote: Finding sources:  87% (308/354)           
remote: Finding sources:  88% (312/354)           
remote: Finding sources:  89% (316/354)           
remote: Finding sources:  90% (319/354)           
remote: Finding sources:  91% (323/354)           
remote: Finding sources:  92% (326/354)           
remote: Finding sources:  93% (330/354)           
remote: Finding sources:  94% (333/354)           
remote: Finding sources:  95% (337/354)           
remote: Finding sources:  96% (340/354)           
remote: Finding sources:  97% (344/354)           
remote: Finding sources:  98% (347/354)           
remote: Finding sources:  99% (351/354)           
remote: Finding sources: 100% (354/354)           
remote: Finding sources: 100% (354/354)        
Receiving objects:   0% (1/354)   
Receiving objects:   1% (4/354)   
Receiving objects:   2% (8/354)   
Receiving objects:   3% (11/354)   
Receiving objects:   4% (15/354)   
Receiving objects:   5% (18/354)   
Receiving objects:   6% (22/354)   
Receiving objects:   7% (25/354)   
Receiving objects:   8% (29/354)   
Receiving objects:   9% (32/354)   
Receiving objects:  10% (36/354)   
Receiving objects:  11% (39/354)   
Receiving objects:  12% (43/354)   
Receiving objects:  13% (47/354)   
Receiving objects:  14% (50/354)   
Receiving objects:  15% (54/354)   
Receiving objects:  16% (57/354)   
Receiving objects:  17% (61/354)   
Receiving objects:  18% (64/354)   
Receiving objects:  19% (68/354)   
Receiving objects:  20% (71/354)   
Receiving objects:  21% (75/354)   
Receiving objects:  22% (78/354)   
Receiving objects:  23% (82/354)   
Receiving objects:  24% (85/354)   
Receiving objects:  25% (89/354)   
Receiving objects:  26% (93/354)   
Receiving objects:  27% (96/354)   
Receiving objects:  28% (100/354)   
Receiving objects:  29% (103/354)   
Receiving objects:  30% (107/354)   
Receiving objects:  31% (110/354)   
Receiving objects:  32% (114/354)   
Receiving objects:  33% (117/354)   
Receiving objects:  34% (121/354)   
Receiving objects:  35% (124/354)   
Receiving objects:  36% (128/354)   
Receiving objects:  37% (131/354)   
Receiving objects:  38% (135/354)   
Receiving objects:  39% (139/354)   
Receiving objects:  40% (142/354)   
Receiving objects:  41% (146/354)   
Receiving objects:  42% (149/354)   
Receiving objects:  43% (153/354)   
Receiving objects:  44% (156/354)   
Receiving objects:  45% (160/354)   
Receiving objects:  46% (163/354)   
Receiving objects:  47% (167/354)   
Receiving objects:  48% (170/354)   
Receiving objects:  49% (174/354)   
Receiving objects:  50% (177/354)   
Receiving objects:  51% (181/354)   
Receiving objects:  52% (185/354)   
Receiving objects:  53% (188/354)   
Receiving objects:  54% (192/354)   
Receiving objects:  55% (195/354)   
Receiving objects:  56% (199/354)   
Receiving objects:  57% (202/354)   
Receiving objects:  58% (206/354)   
Receiving objects:  59% (209/354)   
Receiving objects:  60% (213/354)   
Receiving objects:  61% (216/354)   
Receiving objects:  62% (220/354)   
Receiving objects:  63% (224/354)   
Receiving objects:  64% (227/354)   
Receiving objects:  65% (231/354)   
Receiving objects:  66% (234/354)   
Receiving objects:  67% (238/354)   
Receiving objects:  68% (241/354)   
Receiving objects:  69% (245/354)   
Receiving objects:  70% (248/354)   
Receiving objects:  71% (252/354)   
Receiving objects:  72% (255/354)   
Receiving objects:  73% (259/354)   
Receiving objects:  74% (262/354)   
Receiving objects:  75% (266/354)   
Receiving objects:  76% (270/354)   
Receiving objects:  77% (273/354)   
Receiving objects:  78% (277/354)   
Receiving objects:  79% (280/354)   
Receiving objects:  80% (284/354)   
Receiving objects:  81% (287/354)   
Receiving objects:  82% (291/354)   
Receiving objects:  83% (294/354)   
Receiving objects:  84% (298/354)   
Receiving objects:  85% (301/354)   
Receiving objects:  86% (305/354)   
Receiving objects:  87% (308/354)   
Receiving objects:  88% (312/354)   
Receiving objects:  89% (316/354)   
remote: Total 354 (delta 110), reused 268 (delta 110)        
Receiving objects:  90% (319/354)   
Receiving objects:  91% (323/354)   
Receiving objects:  92% (326/354)   
Receiving objects:  93% (330/354)   
Receiving objects:  94% (333/354)   
Receiving objects:  95% (337/354)   
Receiving objects:  96% (340/354)   
Receiving objects:  97% (344/354)   
Receiving objects:  98% (347/354)   
Receiving objects:  99% (351/354)   
Receiving objects: 100% (354/354)   
Receiving objects: 100% (354/354), 766.35 KiB | 7.44 MiB/s, done.
Resolving deltas:   0% (0/110)   
Resolving deltas:   2% (3/110)   
Resolving deltas:   3% (4/110)   
Resolving deltas:   6% (7/110)   
Resolving deltas:  19% (21/110)   
Resolving deltas:  27% (30/110)   
Resolving deltas:  29% (32/110)   
Resolving deltas:  30% (33/110)   
Resolving deltas:  33% (37/110)   
Resolving deltas:  35% (39/110)   
Resolving deltas:  37% (41/110)   
Resolving deltas:  39% (43/110)   
Resolving deltas:  40% (44/110)   
Resolving deltas:  41% (46/110)   
Resolving deltas:  43% (48/110)   
Resolving deltas:  44% (49/110)   
Resolving deltas:  46% (51/110)   
Resolving deltas:  47% (52/110)   
Resolving deltas:  50% (55/110)   
Resolving deltas:  51% (57/110)   
Resolving deltas:  52% (58/110)   
Resolving deltas:  53% (59/110)   
Resolving deltas:  59% (65/110)   
Resolving deltas:  60% (66/110)   
Resolving deltas:  61% (68/110)   
Resolving deltas:  64% (71/110)   
Resolving deltas:  66% (73/110)   
Resolving deltas:  67% (74/110)   
Resolving deltas:  68% (75/110)   
Resolving deltas:  70% (78/110)   
Resolving deltas:  72% (80/110)   
Resolving deltas:  74% (82/110)   
Resolving deltas:  77% (85/110)   
Resolving deltas:  79% (87/110)   
Resolving deltas:  80% (88/110)   
Resolving deltas:  82% (91/110)   
Resolving deltas:  83% (92/110)   
Resolving deltas:  84% (93/110)   
Resolving deltas:  90% (99/110)   
Resolving deltas:  91% (101/110)   
Resolving deltas:  92% (102/110)   
Resolving deltas:  94% (104/110)   
Resolving deltas:  95% (105/110)   
Resolving deltas:  96% (106/110)   
Resolving deltas:  97% (107/110)   
Resolving deltas: 100% (110/110)   
Resolving deltas: 100% (110/110), done.
From https://go.googlesource.com/sys
 * branch            HEAD       -> FETCH_HEAD
Switched to a new branch 'fetchgit'
removing `.git'...
cannot build derivation ‘/nix/store/mkw8c1kg0j5mnglnic1mrk0pcayckyxl-pet-0.3.2.drv’: 2 dependencies couldn't be built
error: build of ‘/nix/store/mkw8c1kg0j5mnglnic1mrk0pcayckyxl-pet-0.3.2.drv’ failed

@kalbasit
Copy link
Member Author

@ryantm I see. I rebased over master and pushed again.

@ryantm
Copy link
Member

ryantm commented Jul 24, 2018

For future reference, I think rebasing is unnecessary.

@GrahamcOfBorg build pet

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pet

Partial log (click to expand)

/nix/store/qnrpx2kz6jb9a68bkb9s37x1gjg7j4k1-pet-0.3.2-bin

@kalbasit
Copy link
Member Author

@ryantm sounds good, just wanted the record clean for the PR.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pet

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin
shrinking /nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin/bin/pet
strip is /nix/store/a3nk8z2i7m7wa3jdckgv710n7j3yx4b5-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin/bin
patching script interpreter paths in /nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin
checking for references to /build in /nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin...
strip is /nix/store/a3nk8z2i7m7wa3jdckgv710n7j3yx4b5-binutils-2.30/bin/strip
/nix/store/bwx5nd8ir02nw69kcdxd11a2b6rpfh5w-pet-0.3.2-bin

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: pet

Partial log (click to expand)

find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
find: '/nix/store/m9qbn5vq806s5zm1vwqmpg8c3x81wl5z-pet-0.3.2': No such file or directory
/nix/store/d9mbb228ply94lvb8sl1qmlp98qnzyg8-pet-0.3.2-bin

@ryantm ryantm merged commit 6688b65 into NixOS:master Jul 25, 2018
@kalbasit kalbasit deleted the add_pet branch July 25, 2018 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants