-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Issue installing private packages #29
Comments
Which CI server do you use? Perhaps it is possible to run |
I wasn't using a CI server actually, I was just running xgo locally on my machine (i.e. having xgo spin up the container itself). Should I not be doing that? |
Oh no, that's a totally acceptable usecase. Feel free to continue using this that way. I wonder how we could achieve updating the git config inside the container. There are a few options off the top of my head, 1. use an env var to let container know to mount in git config 2. use an argument that takes git config info and runs that first. 3. something similar. I think the above may also need to inject an SSH key in too (if we don't already) so that auth can be correct too. Perhaps mount the entire ~/.ssh directory as read only. I think perhaps we may need to think about this more in depth, at least more than what I have above, as it likely affects gitlab (and other git forges such as Gitea), so having a generic way of doing whatever is planned is best. |
I do the same as @vinceau, running xgo locally, and have run into the same challenge. One possible (though somewhat hamfisted) solution might be to allow go build |
Same problem, any hope on a solution? The |
Same problem here. The |
Is there any way to build a private Edit: pointing to the local directory instead of module name works |
What's the recommended way to build locally when there are dependencies in private repos? |
Many thanks for extending the original
xgo
package and introducinggo mod
support.I'm having an issue where private packages are not being installed on build. When trying to build, I get issues like this:
Running
go get
works fine on the local machine since I have in the~/.gitconfig
file:Any ideas?
The text was updated successfully, but these errors were encountered: