-
Notifications
You must be signed in to change notification settings - Fork 1.2k
bun: remove the native helpers as they appear to be leftover from copy/paste...
#13680
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
base: main
Are you sure you want to change the base?
Conversation
I noticed this is all copy/pasted from `npm_and_yarn` ecosystem... Can we remove this altogether? A quick grep isn't showing places that we actually call this from the bun code. Let's see what CI thinks.
bun: remove the native helpers as they appear to be leftover from copy/paste...
kbukum1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jeffwidman,
I think we need helpers. You can see in the following we are using yarn helper for conflict dependencies
dependabot-core/bun/lib/dependabot/bun/update_checker/conflicting_dependency_resolver.rb
Line 63 in 0186f3c
function: "yarn:findConflictingDependencies",
|
IMO it's a problem if CI isn't catching this... deleting native helpers is a big swathe change, we should at least have a sanity check somewhere that catches if they're completely broken. What happens if the Dockerfile gets refactored and accidentally breaks building the native helpers? Today that wouldn't be caught... Anyway, a discussion outside the scope of this specific PR, I'll chat more with the team responsible for core. |
I can confirm that this is very likely to happen. For example, I tested removing Node since Bun does not require it and the build currently passes On a related note, is this actually being used and working as expected? From the docs: dependabot-core/bun/lib/dependabot/bun/update_checker/conflicting_dependency_resolver.rb Lines 34 to 36 in 0186f3c
But Is this more left-over code from the copy-paste? The code suggests that this won't work in bun as arborist is for npm:
I am asking because if this is actually used we may need to revert the removal of Yarn (#13404), as the referenced script depends on it. I suppose that the other path would be to refactor this so it does not depend on Yarn. But, If this is actually used we should be seeing a failures in production about it. Is that something you can check and confirm? |
Thanks @yeikel. In that case we need to largen our cleanup scope before removing helpers.
CC: @jeffwidman |
|
@jeffwidman I am sure you are busy taking other work given that core is not your focus right now If you're open, I can try sending a follow up on top of this PR do the cleanup @kbukum1 suggested above I am asking mostly to avoid duplicate efforts as I don't know if you started on it |
I noticed this is all copy/pasted from
npm_and_yarnecosystem...Can we remove this altogether? A quick grep isn't showing places that we actually call this from the bun code.
Let's see what CI thinks.