actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.51k stars 1.2k forks source link

"Cache not found" and outputs cache-hit is set to empty string instead of boolean #1116

Closed petkaantonov closed 1 year ago

petkaantonov commented 1 year ago

Restoring claims that cache has not been found:

kuva

But it is found:

kuva

Also as you can see from the comparison, ${{ steps.yarn-cache.outputs.cache-hit }} is being evaluated to empty string instead of false or true.

kuva

Runner is ubuntu-22.04 and the cache was created by ubuntu-22.04. It is pure linux-for-linux caching.

mikeage commented 1 year ago

This appears to be a duplicate of #1110

petkaantonov commented 1 year ago

This appears to be a duplicate of #1110

No, we dont use osx or cross platform caching.

The issue starts with

When creating a simple cache of downloaded content in my Linux steps, and caching it, each Linux machine has no problem mounting the created cache and reusing the content.

For us the cache doesnt work at all, we are only using linux and simplest possible use case

mikeage commented 1 year ago

Was your cache created before Feb 17th? There's an issue with restoring caches now that were created then, because zstd is no longer being used; only gzip. Despite having the same names, they're not compatible.

(if not, sorry for the confusion)

petkaantonov commented 1 year ago

Yes, we will try removing the cache and installing from scratch

petkaantonov commented 1 year ago

Removing the cache manually and triggering reinstall worked