-
Notifications
You must be signed in to change notification settings - Fork 72
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
Incorrect dependency prefix after upgrade #85
Comments
We had the same issue, greenkeeper added |
greenkeeper added |
What should be "get-form-data@^2.0.0:" in yarn.lock ends up being "get-form-data@2.0.0:". Essentially the prefix gets stripped when the dependancy gets added to yarn.lock Details in greenkeeperio/greenkeeper-lockfile#85 This commit updates the yarn.lock file to contain the caret
What should be "get-form-data@^2.0.0:" in yarn.lock ends up being "get-form-data@2.0.0:". Essentially the prefix gets stripped when the dependancy gets updated by greenkeeper in the yarn.lock file Details in greenkeeperio/greenkeeper-lockfile#85 This commit updates the yarn.lock file to contain the caret
What should be "get-form-data@^2.0.0:" in yarn.lock ends up being "get-form-data@2.0.0:". Essentially the prefix gets stripped when the dependancy gets updated by greenkeeper in the yarn.lock file Details in greenkeeperio/greenkeeper-lockfile#85 This commit updates the yarn.lock file to contain the caret
What should be "get-form-data@^2.0.0:" in yarn.lock ends up being "get-form-data@2.0.0:". Essentially the prefix gets stripped when the dependancy gets updated by greenkeeper in the yarn.lock file Details in greenkeeperio/greenkeeper-lockfile#85 This commit updates the yarn.lock file to contain the caret
We created a fork which resolves this.
I'm dissapointed in the amount of time it's taken to get this fixed, considering greenkeeper costs money AND there is an open PR which just doesn't get any response. |
Everytime we get a PR for a dependency upgrade, our lockfile gets corrupted so that running
yarn --frozen-lockfile
gives the error:We get two commits in our PR (example with a recent typescript dependency upgrade):
and
As you can see, the first commit correctly keep the dependency range (
tilde
in our case). While, in the second commit, the tilde is removed in theyarn.lock
file. This is what makes it corrupt.I've looked through the implementation here and it seems to boil down to the command:
Which updates
yarn.lock
andpackage.json
- and removes the tilde from both.greenkeeper-lockfile
only stages and commits the lockfile which causes the corruption.However, we want to maintain our version ranges, so even if it staged
package.json
too it wouldn't be right.It seems like if I do
yarn add -D typescript@~2.6.1
(that is, put the range in the dependencies version), it works as expected.We've been using version
1.2.1
of yarn, but see the same behavior in1.3.2
(latest right now) and0.24.8
.The text was updated successfully, but these errors were encountered: