cache-apt-pkgs-action/src
awalsh128 2502636909 fix: archive and restore packages with system tar under sudo
The in-process tar library ran as the runner user, so archiving failed on
root-only files such as /etc/default/cacerts from ca-certificates-java
(regression #72), and extraction could skip root-owned paths without failing.

- Create and extract with sudo tar; the file list is piped NUL-separated on
  stdin so large packages don't exceed the argument size limit.
- Keep directory symlinks such as /lib on extract.
- Hand archives back to the runner user for the cache save.
- Disable the command timeout for tar and maintainer scripts.
- Record the installed (versioned) entries in manifest_main.json; it held
  unversioned names with no files.
- Return every installed package on a cache hit so outputs include deps.
- Split runInstallScripts into per-script runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 09:51:27 -08:00
..
action.ts fix: report requested and dependency package versions separately 2026-11-06 09:51:27 -08:00
cache.ts fix: archive and restore packages with system tar under sudo 2026-11-06 09:51:27 -08:00
index.ts fix: ship ts-apt's apt-fast script with the bundle 2026-11-05 18:30:20 -08:00
instrumentation.ts fix: make diagnostic artifact names unique per step 2026-11-05 18:51:51 -08:00
manifest.ts fix: archive installed package files on cache miss (#229) 2026-11-05 16:34:09 -08:00
packages.ts fix: report requested and dependency package versions separately 2026-11-06 09:51:27 -08:00