oddlama / agenix-rekey

An agenix extension adding secret generation and automatic rekeying using a YubiKey or master-identity
MIT License
214 stars 18 forks source link

ageWrapper shellcheck fail #39

Closed oluceps closed 1 month ago

oluceps commented 1 month ago
> agenix rekey
Collecting information about hosts. This may take a while...
error: builder for '/nix/store/2h1l7ahpvkf2gh5r7k4x8f0kvnflilb9-ageWrapper.drv' failed with exit code 1;
       last 7 log lines:
       >
       > In /nix/store/zi1zvbdnip8v6sbcrvqpfd385r78zxf7-ageWrapper/bin/ageWrapper line 22:
       > for file in /nix/store/kx8radkl1a86iz7i48vqhvaz4m5byav1-source/sec/age-yubikey-identity-7d5d5540.txt.pub; do
       >             ^-- SC2043 (warning): This loop will only ever run once. Bad quoting or missing glob/expansion?
       >
       > For more information:
       >   https://www.shellcheck.net/wiki/SC2043 -- This loop will only ever run once...
       For full logs, run 'nix log /nix/store/2h1l7ahpvkf2gh5r7k4x8f0kvnflilb9-ageWrapper.drv'.
error: 1 dependencies of derivation '/nix/store/ks5f95qblix7gspk0ic1r5m5gv2z1ra7-agenix-rekey.drv' failed to build
oluceps commented 1 month ago

On nixos-unstable-small

> nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6, NixOS, 24.11 (Vicuna), 24.11.20240905.8b16862`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.92.0-dev-pre20240903-72589e7
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/elen/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/elen/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/elen/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/elen/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/elen/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/71l4pnxiirnn91pgwj49rsq05kdw1bzj-lix-2.92.0-dev-pre20240903-72589e7/share`
 - nixpkgs: `/nix/store/r1gzri19ghj6c4xvzz0bqs6r5hy3jklv-3fbs2i8q8954fggv6fv86n043w41s86a-source`