Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Github workflow fails when jobs update dependency cache #60

Closed
dinassh opened this issue Aug 11, 2020 · 1 comment · Fixed by #62
Closed

Github workflow fails when jobs update dependency cache #60

dinassh opened this issue Aug 11, 2020 · 1 comment · Fixed by #62

Comments

@dinassh
Copy link
Contributor

dinassh commented Aug 11, 2020

The error is:

Error: reserveCache failed: Cache already exists.

Because all jobs try to create a new version of cache at once.

https://github.com/salsita/react-training/runs/971265135?check_suite_focus=true

@dinassh
Copy link
Contributor Author

dinassh commented Aug 12, 2020

The reason for recent failures was an update of the bahmutov/npm-install action, see bahmutov/npm-install#37 (starts to use @actions/cache). In bahmutov/npm-install@v1.4.1 version the attempt to create the same cache in parallel jobs resulted in warning. In bahmutov/npm-install@v1.4.2 the same attempt results in error.

The linked PR downgrades back to bahmutov/npm-install@v1.4.1 version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant