-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[in docker] yarn (linking) touches module's files without need #4764
Comments
Hi! I can repro using the STR above, and have a reduced regression range of yarn 1.1.0 (from the In addition to causing apps in watch mode to unnecessarily reload, this presumably has Docker image/container size implications, given copy on write (for cases where the initial yarn install was in the image, and the |
And this is the really annoying bug because now any installation that doesn't touch any package related to service triggers a restart of all services that use anything from |
Checked with latest alpine-node:9.2.0 with yarn 1.3.2, the problem persists. |
|
@bestander
And the case is that on native OS yarn works ok it doesn't change files, the problem is seen in docker (at least alpine-node not sure about other os/images).
But as you may see from this simple repro sample (above):
everything is touched not only |
I think Would you want to send a PR? |
I'll think about it, I also seem to have other problems (not only updating local deps), which make it necessary to use Still, I think this issue should be investigated. |
@bestander I've updated the issue it is not |
The problem is here: from 1.0.2 native This causes the problem in docker container, it seem to do something wrong to file time stats. On windows natively it works ok. Need to test it on docker on other OS. Seems there are not any options for @edmorley |
Oh, that is a good find, thanks @whitecolor. pinging @BYK who did #4486 and native fs.copy and @Daniel15 who is our cross-platform expert |
Hey, guys still not solved. |
Well this is probably also some docker related issue, but the thing is that it didn't happen on older version of yarn.
#Env: Windows 10 Docker for windows
Compare results of following steps in container:
For yarn 1.2.0 (alpine-node:8.7.0):
docker run --rm -it mhart/alpine-node:8.7.0 sh
and older yarn 0.24.6 (alpine-node:8.1.0)
docker run --rm -it mhart/alpine-node:8.1.0 sh
This leads for example to unexpected result that apps in watch mode (which are watching for all required files including
node_modules
) are restarted without need whileyarn --force
.Also this seem not to be the case for Yarn 1.2 running not in docker.
The text was updated successfully, but these errors were encountered: