Replies: 1 comment 10 replies
-
Based on your output bug in |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug report
What is the current behavior?
In CI, a common paradigm is to store cachable data between runs to cut down on execution time. The webpack 5 persistent cache seems like a prime target for such caching. Currently, webpack fails after recalling the persistent cache when run this way.
The configuration used to produce the following error output works both outside CI AND within CI as long as the cache is not restored from a previous run. I've already found issues which claim to fix the errors which appear in the following output such as:
I do not believe these issues to be relevant because this issue happens exclusively when a persistent cache is moved from one CI run to another.
Here are the different scenarios where my configuration works/fails:
Reproduction instructions
We are using a CircleCI configuration like the following with the
Docker
executor:I suspect that it might be possible to replicate this issue by creating a docker container, running a build, and then copying the cache files out of that build and into a new one. I haven't got the time to create such a replication repo.
What is the expected behavior?
I would expect that if a persistent cache were generated in an environment then copied/moved to an identical environment, that would not introduce errors into subsequent webpack builds.
Other relevant information:
webpack version: 5.50.0
Node.js version: v14.17.4
Operating System: Locally Pop!_OS, CI is using
node:14-buster
as its base docker imageBeta Was this translation helpful? Give feedback.
All reactions