Skip to content

[in docker] yarn (linking) touches module's files without need  #4764

@wclr

Description

@wclr

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:

docker run --rm -it mhart/alpine-node:<version> sh
mkdir app
cd app
yarn init
yarn add bson
stat node_modules/bson/index.js
yarn --force //or other command: yarn add ...
stat node_modules/bson/index.js

For yarn 1.2.0 (alpine-node:8.7.0):
docker run --rm -it mhart/alpine-node:8.7.0 sh
image

and older yarn 0.24.6 (alpine-node:8.1.0)
docker run --rm -it mhart/alpine-node:8.1.0 sh

image

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 while yarn --force.

Also this seem not to be the case for Yarn 1.2 running not in docker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions