-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add build tags to many commands #1705
Conversation
We should keep |
What do you mean with "dynamic" and "permanent" in this context? All |
Yeah I know that it sets it, but it's get resets when you restart vim. Hence the word dynamic. Of course it's not the best solution, because you override the prior value which was set via |
FWIW, I agree with @fatih; I use |
f0db7a5
to
e5a0c8f
Compare
Okay, fair enough. I added Also fixes :GoBuildTags "" to clear the tags. Looks like this didn't work anymore (probably regression from Billy's config PR? Didn't investigate too deeply). |
autoload/go/config.vim
Outdated
if exists('g:go_build_tags') | ||
unlet g:go_build_tags | ||
endif | ||
if a:value is '' || a:value is '""' || a:value is "''" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conversion from ''
and ""
to the empty string should happen in go#cmd#BuildTags
. I'll submit a separate PR to do that so it's resolved separately...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I merged your PR and rebased on master.
assuming builds pass, lgtm |
Fixes #1464 Also fixes `:GoBuildTags ""` to clear the tags. Looks like this didn't work anymore (probably regression from Billy's config PR? Didn't investigate too deeply).
[EDIT] My project uses tags sparingly, and I'm running golang 1.10. When I updated vim-go to |
Fixes #1464