-
Notifications
You must be signed in to change notification settings - Fork 254
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
Go compatibility #82
Comments
Thank you for raising this issue! First, let me say that I have no experience with I have tried to find some documentation on how
Also, a bit further down, it says:
This makes me wonder if you could specify your module slightly different, including the |
I honestly am not entirely sure what that is referring to, but including the scheme is not valid in There are some hardcoded assumptions in the go tooling about the github.com namespace that cause it to default to git over https. I could be wrong and there is an easier workaround, but the only solution I have seen is to use |
Lines 53 to 68 in 5f066a3
Doesn't that generate the |
@mpdude my apologies, I seem to have been running against v0.5.0. The URL format in v0.5.3 seems to resolve everything for me without modifications. Thanks! |
I struggled to get Go private modules working and wanted to share my workaround in case it's helpful or the changes can be incorporated. Basically the default
.gitconfig
generated when using commented keys doesn't seem to work withgo get
and related commands.The tl;dr is I need the config to go from this:
to
The key differences being:
.git
ssh://
formatted. i.e., first:
->/
, and the scheme.The reason for this seems to be that go interacts with git by specifying the origin as
https://github.com/my-org/my-repo
, which works, but won't match the longer (arguably more correct) URL you've put in the config. e.g., internally go is doinggit remote add origin -- https://github.com/my-org/my-repo
without a trailing slash or.git
.I'm currently working around this with this sed script:
NOTE: For anyone else trying to get this working, you will also need
GOPRIVATE=github.com/my-org/*
as an environment variable.The text was updated successfully, but these errors were encountered: