Skip to content
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

Allow usernames in private registry urls #9171

Open
1 task done
PeterJCLaw opened this issue Feb 29, 2024 · 0 comments
Open
1 task done

Allow usernames in private registry urls #9171

PeterJCLaw opened this issue Feb 29, 2024 · 0 comments
Labels
L: git:submodules Git submodules L: python L: rust:cargo Rust crates via cargo T: feature-request Requests for new features

Comments

@PeterJCLaw
Copy link

PeterJCLaw commented Feb 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

In some configurations pip requires that an --extra-index-url contains a username (as described at pypa/pip#12543). Currently dependabot enforces the lack of a username in private registry urls and will insert the url without the username into requirements files, even if a version of the url (with the username) is already present.

The presence of the url without the username then breaks workflows which expect the username to be present.

For context my setup is:

  • pip-compile, with --extra-index-url (containing a username) in the *.in files
  • keyring with Google's plugin to access a Google Artifact Registry PyPI
  • dependabot with a private registry config for the plain (i.e: no-username) index url

It would be great if one of the following were true:

  • dependabot allowed usernames in private registry urls
    • in my case I actually want to then override that username with a different one for dependabot to actually use, so I'd want support for that too
  • dependabot could be configured either with the url to insert or being told not to insert a url (i.e: trust that the url is already present)
  • dependabot could automatically detect the presence of an equivalent url and not insert the different one into the generated requirements files

I'm also open to other ways to approach this if there's something around configuring dependabot that I've missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: git:submodules Git submodules L: python L: rust:cargo Rust crates via cargo T: feature-request Requests for new features
Projects
None yet
Development

No branches or pull requests

1 participant