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

[REQ] Enable gomod git auth #455

Open
1 task
pmengelbert opened this issue Dec 4, 2024 · 0 comments
Open
1 task

[REQ] Enable gomod git auth #455

pmengelbert opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pmengelbert
Copy link
Contributor

What kind of request is this?

None

What is your request or suggestion?

The gomod source generator currently has no way to handle authz/n for git repos of dependencies. The generator will fail if there is a private module in the dependency graph. Here is an example of what happens:

 > Fetch go module dependencies for source: aksbuilder:
11.84 go: go.goms.io/aks/[email protected]: reading go.goms.io/aks/infrasrvrpc/go.mod at revision v0.4.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/9451610b4f4ac4ba7febaab0564cf98141ea2b4bc163ce7937a9b0f327ffa0a5: exit status 128:
11.84   fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
11.84 Confirm the import path was entered correctly.
11.84 If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
------
ERROR: failed to solve: process "sh -c go mod download" did not complete successfully: exit code: 1

According to an earlier discussion, this can be handled with build secrets. They will need to be wired up to the container in which the gomod generator is run.

Are you willing to submit PRs to contribute to this feature request?

  • Yes, I am willing to implement it.
@pmengelbert pmengelbert added the enhancement New feature or request label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant