-
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
Problems with detecting updates of Golang dependencies in private repositories #1884
Comments
I'd be interested to know if private repositories are supported in gomod dependabot. |
I guess, this depends on the git configuration on the host that runs dependabot. If ssh keys / basic auth credentials are in place, I'd assume, it works. On my local machine, dependabot can access the private repo with the configuration shown above. |
This comment was marked as off-topic.
This comment was marked as off-topic.
That's also how I think it works. At least when I update my Git config so the URLs point to my private repos, Go Modules is able to resolve them correctly. When running Dependabot in a container and not directly on the host, it should also work to overwrite certain Git config parameters by setting the environment variable |
A solution for this would be really helpful. Neither using The former (Git config) apparently doesn't work because the resolution chain goes through the following steps: In the For the latter (dependency-ignore) it isn't even possible to prevent private (rewritten) packages from being parsed and evaluated in the first place to allow at least public dependency to be checked. See #1959 for additional details. There is also no recovery option as far as I can tell, i.e. let Dependabot fail for a private/rewritten go module but just log it and continue with the remaining dependencies. Dependabot will just fail and not recover at all. This makes Dependabot fully unusable in some use cases. |
Package manage/ecosystem
go_modules
Manifest contents prior to update
Updated dependency
from
go.my-company.com/private-dependency.git v1.0.2
togo.my-company.com/private-dependency.git v1.1.0
What you expected to see, versus what you actually saw
I'd expect a pull request for
go.my-company.com/private-dependency.git v1.1.0
What I actually get is an error message like this
Images of the diff or a link to the PR, issue or logs
not applicable
Background
We use
to redirect go mod dependency requests to
git://go.my-company.com
, which works for all dependency-related operations with go mod but seems to raise issues with thedependabot-core/go_modules/helpers/install-dir/go_modules/bin/helper
utility.If I run
on my laptop, things work as expected and I see
If I run it within dependabot-core, I either get the error mentioned above, or I get
so it seems like the
in my
.gitconfig
is not used when running dependabot.A
git ls-remote -q git://go.my-company.com/private-dependency
shows the refs as expected.Thanks for your assistance!
The text was updated successfully, but these errors were encountered: