-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] disable lockfile #1175
Comments
This isn't something we'll implement. More details here. |
So the alternative for an active project would be to regularly manually run |
Yep. To make that easier, various bots exist that automatically run upgrades periodically and open PRs to run the tests against the new set of dependencies (Renovate / Dependabot). |
I tend to get whatever latest and resolve issue if there is any. If they don't want to implement it, whenever I saw that file, I do:
|
We have |
I've already read it several times. And why I personally always use |
All softwares require baselines, and this is part of ours. There are workarounds if you really want to ignore our advices, there's no reason for us to change anything. |
Describe the user story
When developing libraries, having a lock file can prevent the detection of issues with newer packages, that ultimately will be pulled by dependents.
But maybe still locking dev-dependencies can be useful. This would be up to the developer?
Describe the solution you'd like
In a perfect world, we should be able to choose what dependencies to lock:
all
,dev
,none
.all
would primarily be used by applications (no dependents).dev
andnone
could be used for libraries (that have dependents).It can be a field in
.yarnrc.yml
, maybelock: (all|dev|none)
?Berry should be able to replace already installed dependencies by a new one if available (and not locked) when doing
yarn install
. It can be annoying to delete the wholenode_modules
folder every time. Edit:or should a dev useit would upgrade dev dependencies as well, which we might not want.yarn upgrade
in this case?Describe the drawbacks of your solution
Maybe slower installs? I can live with that as long as it does what I want. Only impacts people disabling the lockfile.
Describe alternatives you've considered
Running
yarn upgrade
often. But this pollutes the commit history in some way, and might lead to merge conflicts on the lockfile. Even though old yarn was able to resolve those conflicts, it is still annoying to land in that state.Additional context
N/A
The text was updated successfully, but these errors were encountered: