-
Notifications
You must be signed in to change notification settings - Fork 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
Dependabot removes the indirect Go dependencies that are in use since Dec 2022 #6479
Comments
Hei! Can you try the dry-run.rb script against your repo to see if the problem can be reproduced using that? Alternative, can you provide manifest files so that we can try reproducing it ourselves? Thanks! |
This may be caused by a bug in #6361... but won't know for sure until follow @deivid-rodriguez 's suggestions. If you want to provide manifest files, best way will be through a public GitHub repo that we can point the dry-run and similar tools at ourselves. Also, we'll want not only the |
Hi @deivid-rodriguez @jeffwidman |
Absolutely! |
Yes. Since the updater runs
|
Hi @deivid-rodriguez @jeffwidman , |
Thanks for providing that! Looking at logs, this stands out to me:
Indeed it would feel like an issue due to a dependency being private, but then, why was dependabot able to figure out it needs to upgrade it, and to which version? I know nothing about to go ecosystem, so don't have the answers, but something feels off. |
@peggy-sun-fp IIRC, you can workaround the dependabot-core/bin/dry-run.rb Lines 14 to 15 in d688333
As @deivid-rodriguez points out, the dry run output looks suspect, but there's also a chance it's a bug in how dry-run parses the output, not the underlying lib... so it'd be good to get a run that isn't blocked on a permissions issue and see what error it starts hitting. IF you're still coming up empty after that, then we may need to move this one to a support request since it does sorta smell like a legit bug here that will be easier to debug if we have access to the underlying repo and I assume this is your company's paid account so obviously can't open source it. But first try it locally with a token that has access to all those repos and see what starts breaking. |
Hi @deivid-rodriguez @jeffwidman |
Hmm... For Dry run, did you also:
Sorry I forgot to mention these ahead of time, but they can influence how bugs appear due to caching/proxy stuff... see #4536 (comment) for example. And sometimes other errors start getting exposed. The "ran out of disk space" is likely a semi-spurious error, unless it repro's consistently I'd ignore it. |
due to dependabot removing indirect go mod: dependabot/dependabot-core#6479
Is there any update on the above issue? We are also facing a similar scenario where |
Package ecosystem
go.mod
Language version
Go 1.18
dependabot.yml content
Updated dependency
Every dependency upgrade since Dec 2022, such as upgrading golang.org/x/tools from 0.4.0 to 0.5.0
What you expected to see, versus what you actually saw
Expected: It should only upgrade
golang.org/x/tools
and its related indirect dependencies.Actual: Dependabot upgrades
golang.org/x/tools
and removes a lot of indirect dependencies that are in use, causing CI checks to fail!Dependabot is broken in our repository, so we need to type
go mod tidy
to restore the dependencies deleted by dependabot.Native package manager behavior
When I manually upgraded with the same dependency with the command
go get golang.org/x/tools
, none of the above dependencies were removed. Besides, they were still existing after I typedgo mod tidy
.The text was updated successfully, but these errors were encountered: