Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
use_aptfileinput parameter that allows users to disable reading packages from the Aptfile, even if one exists in the repository.Changes
use_aptfileinput parameter (defaults totruefor backward compatibility)pre_cache_action.shto check the flag before reading AptfileMotivation
Some users may want to use only the
packagesinput parameter and ignore any Aptfile that exists in their repository. This option provides that flexibility.Testing
use_aptfile: true) maintains backward compatibilityuse_aptfile: falsedisables Aptfile reading as expectedNote
Adds Aptfile-based package sourcing (merge with input), a
use_aptfiletoggle, makespackagesoptional, and persists the normalized package list for restore; docs updated with examples.action.yml):inputs.packagesoptional; addinputs.use_aptfile(defaulttrue).use_aptfiletopre_cache_action.shand wire env vars accordingly.pre_cache_action.sh):use_aptfile.${cache_dir}/packages.txtand quote writes.post_cache_action.sh):${cache_dir}/packages.txtif present; fallback to input.lib.sh):parse_aptfileutility to extract packages fromAptfile.README.md):use_aptfileflag, and examples (Aptfile-only, combined, disabling).Written by Cursor Bugbot for commit 32569df. This will update automatically on new commits. Configure here.