-
Notifications
You must be signed in to change notification settings - Fork 643
manually run dependabot for caniuse-lite #2086
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
Conversation
It looks like dependabot is able to make a minimal incision and update caniuse-lite without messing around with the rest of the package lock. I suspect that dependabot will eventually get around to updating caniuse-lite if we wait long enough, but I was curious to see how hard it is to run manually, so I had a go. Turns out it's really easy, but takes quite a long time. Steps to reproduce: * clone https://github.com/dependabot/dependabot-core * docker pull dependabot/dependabot-core * bin/docker-dev-shell * bin/dry-run.rb --dep caniuse-lite npm_and_yarn rust-lang/crates.io * paste the printed patch into a file (e.g. patchfile.txt) * patch package-lock.json patchfile.txt * npm ci && npm start Fixes rust-lang#1914
r? @jtgeibel (rust_highfive has picked a reviewer for you, use r? to override) |
Awesome, thanks for the fix and detailed instructions! @bors r+ |
📌 Commit 808fe7a has been approved by |
manually run dependabot for caniuse-lite It looks like dependabot is able to make a minimal incision and update caniuse-lite without messing around with the rest of the package lock. I suspect that dependabot will eventually get around to updating caniuse-lite if we wait long enough, but I was curious to see how hard it is to run manually, so I had a go. Turns out it's really easy, but takes quite a long time. Steps to reproduce: * clone https://github.com/dependabot/dependabot-core * docker pull dependabot/dependabot-core * bin/docker-dev-shell * bin/dry-run.rb --dep caniuse-lite npm_and_yarn rust-lang/crates.io * paste the printed patch into a file (e.g. patchfile.txt) * patch package-lock.json patchfile.txt * npm ci && npm start Fixes #1914
☀️ Test successful - checks-travis |
@alsuren I'm curious, do you know what dependabot runs to perform this update? does it run some special |
I think it recursively deletes the dep from the lockfile and then runs npm install in this case. It has a bunch of different strategies, and calls npm via the JS API, so I might be misinterpreting things. |
I see, thanks. would be nice if npm had a builtin command for that like yarn has. or maybe we should switch back to yarn 😅 |
It looks like dependabot is able to make a minimal incision and update
caniuse-lite without messing around with the rest of the package lock.
I suspect that dependabot will eventually get around to updating
caniuse-lite if we wait long enough, but I was curious to see how hard
it is to run manually, so I had a go. Turns out it's really easy, but
takes quite a long time.
Steps to reproduce:
Fixes #1914