deno2nix
deno2nix copied to clipboard
pretty store paths for metadata.json files
this is purely cosmetic ...
actual
all meta files have basename metadata.json
1ddfac632016b935a9574d3e7789699caab77e9602acbd00da7c07ffef4fd9fb
/nix/store/s6vr495pcm6fap2v6f0gp3q9x82rk9q4-os.ts
/nix/store/4974pc3w95nq1wsbbszgfrkj7cn767cn-metadata.json
230bdccb49d1692e3a623baf7d9d59183f15e928dcb446574ecf9bedc6f84246
/nix/store/s0hlm9zlkh2fkqacp9l3lnma7p8pjkaf-mod.ts
/nix/store/vgxsvkmc745vrcx3xmywjrzj3558kqap-metadata.json
ls /nix/store/4b4f3bm8a1n4hrygwm8aa7k7sgbfqdd5-udd-0.8.0/share/deno/deps/https/deno.land/*.json |
while read j
do
b=${j%.*.*}
echo $(basename $b)
echo " " $(readlink -f $b)
echo " " $(readlink -f $j)
echo
done |
head -n $((4*2))
expected 1: same basename
minus: limited filename length
1ddfac632016b935a9574d3e7789699caab77e9602acbd00da7c07ffef4fd9fb
/nix/store/s6vr495pcm6fap2v6f0gp3q9x82rk9q4-os.ts
/nix/store/4974pc3w95nq1wsbbszgfrkj7cn767cn-os.ts.meta
230bdccb49d1692e3a623baf7d9d59183f15e928dcb446574ecf9bedc6f84246
/nix/store/s0hlm9zlkh2fkqacp9l3lnma7p8pjkaf-mod.ts
/nix/store/vgxsvkmc745vrcx3xmywjrzj3558kqap-mod.ts.meta
expected 2: same folder
plus: less files in nix store
minus: *.ts
files are not stored as files in nix store = *.ts
files are not content-addressed
1ddfac632016b935a9574d3e7789699caab77e9602acbd00da7c07ffef4fd9fb
/nix/store/s6vr495pcm6fap2v6f0gp3q9x82rk9q4-os.ts/os.ts
/nix/store/s6vr495pcm6fap2v6f0gp3q9x82rk9q4-os.ts/os.ts.meta
230bdccb49d1692e3a623baf7d9d59183f15e928dcb446574ecf9bedc6f84246
/nix/store/s0hlm9zlkh2fkqacp9l3lnma7p8pjkaf-mod.ts/mod.ts
/nix/store/s0hlm9zlkh2fkqacp9l3lnma7p8pjkaf-mod.ts/mod.ts.meta