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

guru.vim: defer ImportPath check #1826

Merged
merged 1 commit into from
May 22, 2018
Merged

guru.vim: defer ImportPath check #1826

merged 1 commit into from
May 22, 2018

Conversation

yousong
Copy link
Contributor

@yousong yousong commented May 15, 2018

In the k8s.io/kubernetes repo, vendor/k8s.io/{api,apiservers} etc. are
symbolic links to corresponding dir staging/src/k8s.io/{api,apiservers}.

vendor/k8s.io/apiserver -> ../../staging/src/k8s.io/apiserver

ImportPath detection for files under these staging directories will fail
because '%:p:h' does not match any items of 'go list'

For large projects like k8s, users tend to set the g:go_guru_scope
variable. The change is mainly a workaround trying to improve
experience so that those not worked before will work now and it will not
affect existing usage.

In the k8s.io/kubernetes repo, vendor/k8s.io/{api,apiservers} etc. are
symbolic links to corresponding dir staging/src/k8s.io/{api,apiservers}.

    vendor/k8s.io/apiserver -> ../../staging/src/k8s.io/apiserver

ImportPath detection for files under these staging directories will fail
because '%:p:h' does not match any items of 'go list'

For large projects like k8s, users tend to set the g:go_guru_scope
variable.  The change is mainly a workaround trying to improve
experience so that those not worked before will work now and it will not
affect existing usage.
@yousong
Copy link
Contributor Author

yousong commented May 22, 2018

Hi, the change should be safe to merge. It just moves the integrity check to where it was actually needed. The check failure on test coverage was also not newly caused by the diff of the change.

@bhcleek bhcleek merged commit 452a7ac into fatih:master May 22, 2018
@bhcleek
Copy link
Collaborator

bhcleek commented May 22, 2018

Thank you.

bhcleek added a commit that referenced this pull request May 22, 2018
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.

2 participants