-
Notifications
You must be signed in to change notification settings - Fork 61
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 for go modules (automatically infer module path)? #30
Comments
It is why |
Hmm... Looking at the code ( Lines 159 to 171 in 7eb50f3
For example, with this directory structure:
there should be no difference between For this to work, I'll try to come up with a better example/PR later when I'm back home. |
This is just a proof of concept for daixiang0#30.
This is just a proof of concept for daixiang0#30. Signed-off-by: Dominik Menke <dom@digineo.de>
I have started an example in #31. Some notes:
|
This is just a proof of concept for daixiang0#30. Signed-off-by: Dominik Menke <dom@digineo.de>
This is just a proof of concept for daixiang0#30. Signed-off-by: Dominik Menke <dom@digineo.de>
I also think this is confusing that |
This started as a proof-of-concept for daixiang0#30. Signed-off-by: Dominik Menke <dom@digineo.de>
This started as a proof-of-concept for daixiang0#30. Signed-off-by: Dominik Menke <dom@digineo.de>
Hello, i have the same need :) This issue still in progress ? Or always planned ? |
I find myself hard-pressed to continue the work started in #31, feel free to take over :) |
There are some packages that might help resolving the module name: |
Hi,
at
$company
, we have a bunch of Go projects namedgitlab.$company.com/$project
.All projects use Go modules, i.e. there's a
go.mod
containingmodule gitlab.$company.com/$project
.However,
gci
doesn't seem to make use of this information, compare the output of the followinggci
runs (with and without-local
flag):The
client.go
contains this import block:Would this be a valid feature request? I'd like
gci
to lookup and use the module path when invoked without-local
.The text was updated successfully, but these errors were encountered: