Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Add --frozen-lockfile to docker image yarn install #1028

Merged
merged 1 commit into from Apr 21, 2020
Merged

Conversation

aliuk2012
Copy link
Contributor

@aliuk2012 aliuk2012 commented Apr 21, 2020

Webpacker 5.1.0 removed yarn integrity checker. This commit ensures that
we also use the yarn.lock we generated while developing rather than updating
it. It should also fail if package.json & yarn.lock are out of sync.

Yarn's own maintainer discourages its use: yarnpkg/yarn#6427 (comment)
and suggests the following solution:

Solution
Remove the integrity initializer and the configuration options. Encourage
developers to ensure yarn install in local environments and
yarn install --frozen-lockfile as part of deployment.

Other references:
https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile
rails/webpacker#2518

Webpacker 5.1.0 removed yarn integrity checker. This commit ensures that
we also use the yarn.lock we generated while developing rather than updating
it. It should also fail if package.json & yarn.lock are out of sync.

Yarn's own maintainer discourages its use:
yarnpkg/yarn#6427 (comment)
and suggests the following solution:
Solution
Remove the integrity initializer and the configuration options. Encourage
developers to ensure yarn install in local environments and
yarn install --frozen-lockfile as part of deployment.

Other references:
https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile
rails/webpacker#2518
@auto-comment
Copy link

auto-comment bot commented Apr 21, 2020

Auto pull request trigger is configured on this repository for PR validation. To review the app deployed by this PR, please replace #### in the URL given below with the first four characters of your branch name. This could be your trello card number. https://s121d02-####-ptt-as.azurewebsites.net/

@TobyRet TobyRet self-requested a review April 21, 2020 08:51
@aliuk2012 aliuk2012 merged commit fb18a53 into master Apr 21, 2020
@aliuk2012 aliuk2012 deleted the force-yarn-lock branch April 21, 2020 09:44
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 this pull request may close these issues.

None yet

2 participants