-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support case-sensitive Go module names #86
Support case-sensitive Go module names #86
Conversation
using `strings.ToLower(mod)` removes the ability to support case-sensitive Go modules names, for example `github.com/antlr/antlr4/runtime/Go/antlr` is currently being converted to `github.com/antlr/antlr4/runtime/go/antlr` which returns a 404 with the Go Proxy
I think this makes sense, I'm just a little concerned that I added this for a reason... I will have to test this out in a few places before we land this. |
👍 - it does feel like it was done purposefully! Please test away, let me know if I can help |
I recall some nonsense with I agree that we probably shouldn't be doing this though. |
Ah I see (sirupsen/logrus#543). I think I could probably update this PR to allow end-users to override a module name, e.g. end-users add |
I think hopefully we don't need that in the config; i think you could achieve the same with a |
Maybe we can just try and resolve both? Go already tries a bunch of arbitrary module names to figure out what the module path is so I don't think that's as ugly as it first sounds. |
Just updated the PR to do this instead, so it shouldn't break any existing functionality 👍. Let me know what y'all think :) |
Thanks for this! This makes a lot of sense. |
you'll need to merge it as I don't have write access 😄 |
Sorry! I was waiting for the build but got distracted. :) |
using
strings.ToLower(mod)
removes the ability to support case-sensitive Go modules names, for examplegithub.com/antlr/antlr4/runtime/Go/antlr
is currently being converted togithub.com/antlr/antlr4/runtime/go/antlr
which returns a 404 with the Go Proxy.I haven't tested this, but can't immediately see a reason for lowercasing the
mod
. Please share if so, and I'll try to find a better solution :)