Closed kristoff3r closed 2 weeks ago
@kristoff3r, can I see your workflow?
@kristoff3r, can I see your workflow?
The workflow is in a private work repository, is there something specific you're looking for or is it just for testing? I can try to make a small repository that replicates it if needed.
The only steps before the snippet above are:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
and it runs on ubuntu-latest.
Experiencing the same issue (with the same configuration), also in a private repository: The same cache is effectively extracted twice.
@kristoff3r, @obreitwi, will try to resolve the issue this week. Was busy recently
will try to resolve the issue this week. Was busy recently
No worries, take your time!
@obreitwi, @kristoff3r, please check v5.2.1
or v5
if v5.2.1
isn't available.
Describe the bug
I use the action like this:
The idea is that it would try to find an exact cache, and then fallback to one with the same flake/lock otherwise. But even when it hits a primary key it still tries to restore from prefixes, resulting in the same cache being restored twice:
To Reproduce
Expected behavior
The workflow should skip
restore-prefixes-first-match
when a cache has already been found, as described in the documentation.Additional context