| 5 May 2023 |
matthewcroughan - nix.zone | 700MiB seems a bit small, maybe something's missing?
| 20:57:14 |
silent_water | yeah the archive I'm getting is about double that size | 20:57:35 |
silent_water | if you get the store path and list the contents and upload a file with the list, I can tell you if stuff is missing | 20:57:57 |
matthewcroughan - nix.zone | So does it only happen for some devices? I've not seen this bug anywhere but this specific device I'm trying to build | 20:58:01 |
silent_water | I think it happens whenever you're copying the archive across filesystem boundaries but I'm not entirely sure | 20:58:24 |
matthewcroughan - nix.zone | What output are you expecting me to build? | 20:58:47 |
matthewcroughan - nix.zone | ser: matthew 🌐 swordfish in nixcfgs on mc/admin-phone [!?]
❯ nix build .#robotnixConfigurations.admin-phone.ota -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
user: matthew 🌐 swordfish in nixcfgs on mc/admin-phone [!?]
❯ ls -lah result
lrwxrwxrwx 1 matthew users 78 May 5 21:58 result -> /nix/store/1pr7a8yxfwcyyv8z3m2zh1w8bjqa9z4i-dreamlte-ota_update-2022110721.zip
| 20:58:57 |
silent_water | it's not a consistent thing -- some inputs produce the error with missing files and others don't. but if a set of inputs produces the error, it's going to reliably produce the error | 20:58:59 |
silent_water | signedTargetFiles | 20:59:16 |
silent_water | or unsignedTargetFiles if you don't have signing enabled | 20:59:51 |
matthewcroughan - nix.zone | ❯ nix build .#robotnixConfigurations.admin-phone.unsignedTargetFiles -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path
user: matthew 🌐 swordfish in nixcfgs on mc/admin-phone [!?] took 2s
❯ ^C
user: matthew 🌐 swordfish in nixcfgs on mc/admin-phone [!?]
❯ ls -lah /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
-r--r--r-- 2 root root 1.8G Jan 1 1970 /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
| 21:01:27 |
matthewcroughan - nix.zone | * ❯ nix build .#robotnixConfigurations.admin-phone.unsignedTargetFiles -L
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path
user: matthew 🌐 swordfish in nixcfgs on mc/admin-phone [!?]
❯ ls -lah /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
-r--r--r-- 2 root root 1.8G Jan 1 1970 /nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip
| 21:01:38 |
silent_water | use libarchive's bsdtar to list the contents with nix shell nixpkgs#libarchive -c "bsdtar" -- $(nix build <your flake>#<android image config>.signedTargetFiles) | 21:02:59 |
silent_water | I think that should work anyway | 21:03:04 |
silent_water | * use libarchive's bsdtar to list the contents with nix shell nixpkgs#libarchive -c "bsdtar" -- tvf $(nix build <your flake>#<android image config>.signedTargetFiles) | 21:03:18 |
silent_water | oh and redirect that to a file. the output will be massive whether or not there are missing files | 21:04:39 |
matthewcroughan - nix.zone | signedTargetFiles doesn't work because I'm not signing anything, and unsignedTargetFiles results in error: flake output attribute 'robotnixConfigurations.admin-phone.unsignedTargetFiles' evaluates to the string '/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip' which is not a store path | 21:11:57 |
silent_water | swap to nix eval instead of nix build | 21:12:51 |
matthewcroughan - nix.zone | bsdtar: Must specify one of -c, -r, -t, -u, -x | 21:13:29 |
silent_water | yeah prefix the nix eval output with tvf | 21:13:52 |
silent_water | I realized my mistake and edited right after sending | 21:14:12 |
matthewcroughan - nix.zone | nix shell nixpkgs#libarchive -c "bsdtar" -- tvf $(nix eval .#robotnixConfigurations.admin-phone.unsignedTargetFiles) | 21:14:51 |
silent_water | yep | 21:14:58 |
matthewcroughan - nix.zone | I'm saying that returns "must specify one of" | 21:15:07 |
silent_water | oh maybe it's not stripping the -- | 21:15:18 |
silent_water | try removing that | 21:15:22 |
silent_water | I always forget which commands need that which ones don't | 21:15:33 |
matthewcroughan - nix.zone | Yup that did it | 21:15:45 |
matthewcroughan - nix.zone | nix shell nixpkgs#libarchive --command "bsdtar" -tvf $(nix eval .#robotnixConfigurations.admin-phone.unsignedTargetFiles)
warning: Git tree '/home/matthew/git/doesliverpool/nixcfgs' is dirty
trace: warning: dreamlte is not an officially-supported device for LineageOS
bsdtar: Error opening archive: Failed to open '"/nix/store/azv75wmvyr48vc3y244vx5cqq1p08mxl-robotnix-lineage_dreamlte-2022110721/lineage_dreamlte-target_files-2022110721.zip"'
| 21:15:46 |
silent_water | if you copy that file path and ls does the archive exist? | 21:16:09 |