Skip to content

Wrong cache restored for versions with just Major.Minor: 1.21 vs 1.21.5 #70

@3arthqu4ke

Description

@3arthqu4ke

https://github.com/3arthqu4ke/hmc-specifics/actions/runs/14293967194/job/40066326506#step:10:82
A run for Mc 1.21, it seems a cache for hmc-neoforge-1.21 is found, but then the cache that is restored is the one for 1.21.5?

Run actions/cache@v4
Cache hit for: hmc-neoforge-1.21 <---- THE CORRECT KEY
Received 100663296 of 184964618 (54.4%), 95.9 MBs/sec
Received 184964618 of 184964618 (100.0%), 99.2 MBs/sec
Cache Size: ~176 MB (184964618 B)
/usr/bin/tar -xf /home/runner/work/_temp/501b3db4-acdf-41f7-94c0-4b866cba9f54/cache.tzst -P -C /home/runner/work/hmc-specifics/hmc-specifics --use-compress-program unzstd
Cache restored successfully
Cache restored from key: hmc-neoforge-1.21.5  <---- WHYYYY?

After deleting the hmc-neoforge-1.21.5 cache the workflow ran fine, but this might be something we should keep an eye out for?

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