Closed bestander closed 8 years ago
The frozen-lockfile is therefore very helpful on build machine (i.e. jenkins) as those build will fail.
I think we can enable this automatically when we detect we are in CI mode?
@BYK I didn't realize this issue was closed before adding in here. Should I maybe open a new one or can this be reopened?
I'd say open a new one ☺️
I agree with @thejameskyle and @kittens that yarn.lock should be kept in sync with package.json automatically
Not sure if this has been said, but just in case: you don't have to invalidate the entire yarn.lock when anything in package.json changes. You can invalidate only the dependencies of only packages that were modified inside of package.json. F.e. if you updated only TypeScript, on the dependencies of TypeScript would need to be modified (with considerations respecting other unchanged packages).
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Not passing
--pure-lockfile
forinstall
command confuses me because it modifies the lock file while installing node_modules. We agreed on semantics thatadd/upgrade/remove
are to change dependencies andinstall
is to consistently rebuild node_modules from lockfile.Consistency gets lost when lockfile is modified depending on environment (version of yarn currently installed).
What is the expected behavior?
Not write yarn.lock or package.json when doing
yarn install
. To update yarn.lock useyarn upgrade
Please mention your node.js, yarn and operating system version.
yarn 0.14