Skip to content

Bundler: Questions related to implementing dependency confusion check on downstream Bundler. #5055

Closed Answered by junaruga
junaruga asked this question in Q&A
Discussion options

You must be logged in to vote

It's hard to help you without knowing what are you trying to accomplish.

Here is my work junaruga@cdfe149 on the wip/dependency-confusion-on-bundler-1.17.3 branch on my forked repository to raise an error or warn on the dependency confusion cases. Though I think you might not want to see the code. This is what I want to accomplish.

Now I have another question related to this topic. I want to know how to check if a gem exists on a global source repository in definition.rb. It seems that the sources.default_source.specs object of the class Bundler::Index could be used. Because when the indirect dependency gems are found on a scoped (non global) source, if the gems don't exist on the globa…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@deivid-rodriguez
Comment options

@junaruga
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@junaruga
Comment options

Answer selected by junaruga
Comment options

You must be logged in to vote
3 replies
@junaruga
Comment options

@junaruga
Comment options

@deivid-rodriguez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants