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

cmd/govim: support GOVIM_USE_GOPLS_FROM_PATH=true for tests #720

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Jan 26, 2020

No description provided.

@myitcv myitcv requested a review from leitzler January 26, 2020 03:00
@myitcv myitcv force-pushed the cmd_govim_allow_gopls_from_path_for_tests branch 3 times, most recently from 93f3c0c to b4ed07d Compare January 26, 2020 13:22
An unsupported environment variable for govim is
GOVIM_USE_GOPLS_FROM_PATH which, when set to true, causes govim to use
gopls from PATH as opposed to its own version pinned via go.mod.

However we do not currently support specifying GOVIM_USE_GOPLS_FROM_PATH
in tests.

This commit changes that so that using a custom/local gopls via dockexec
becomes possible by specifying two additional flags to dockexec.
Firstly, bind mounting gopls:

    -v /path/to/gopls:/usr/local/bin/gopls

Secondly, turning on GOVIM_USE_GOPLS_FROM_PATH:

    -e GOVIM_USE_GOPLS_FROM_PATH=true.
@myitcv myitcv force-pushed the cmd_govim_allow_gopls_from_path_for_tests branch from b4ed07d to 6de5a9b Compare January 26, 2020 20:40
Copy link
Member

@leitzler leitzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@myitcv myitcv merged commit bb7b134 into master Jan 27, 2020
@myitcv myitcv deleted the cmd_govim_allow_gopls_from_path_for_tests branch January 27, 2020 06:38
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