Skip to content

Function "aptHash" is not used anywhere #2

@rishabhc32

Description

@rishabhc32

The function aptHash is defined but not used anywhere. This mean the packages are cached based only on names and not based on their installed versions.

run: |
sudo apt-get update -yq
aptHash(){ echo "$1-$(apt-cache policy "$1" | grep -oP '(?<=Candidate:\s)(.+)')"; }
echo "packagesHash=$(echo "${{ inputs.packages }}" | xargs -rn1 | tr '\n' '-' | md5sum | cut -f 1 -d ' ')" >> $GITHUB_ENV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions