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

try to use relative import paths if necessary #2335

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Jun 3, 2019

Teach go#debug#Start, go#lint#Vet, and go#lint#ErrCheck to work in null
modules.

Refactor go#package#ImportPath to delegate to go#package#FromPath.

Teach go#package#FromPath to return a relative package path when in a
null module if possible. When the package is not within the current
working directory, -2 will still be returned. This allows
go#debug#Start, go#lint#Vet, and go#lint#Errcheck to work in null
modules.

Add a test for go#debug#Start using a relative path in a null module.

Correct documentation for :GoDebugStart.

Fix :GoVet with arguments so that it will run for the package that
contains the current buffer instead of just using whatever the current
working directory is.

Teach go#debug#Start, go#lint#Vet, and go#lint#ErrCheck to work in null
modules.

Refactor go#package#ImportPath to delegate to go#package#FromPath.

Teach go#package#FromPath to return a relative package path when in a
null module if possible. When the package is not within the current
working directory, -2 will still be returned. This allows
go#debug#Start, go#lint#Vet, and go#lint#Errcheck to work in null
modules.

Add a test for go#debug#Start using a relative path in a null module.

Correct documentation for :GoDebugStart.

Fix `:GoVet` with arguments so that it will run for the package that
contains the current buffer instead of just using whatever the current
working directory is.
@bhcleek bhcleek merged commit b82f469 into fatih:master Jun 4, 2019
@bhcleek bhcleek deleted the better-relative-import-path-support branch June 4, 2019 19:20
bhcleek added a commit that referenced this pull request Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant