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: add config ExperimentalTempModfile #634

Merged
merged 1 commit into from
Jan 26, 2020

Conversation

myitcv
Copy link
Member

@myitcv myitcv commented Dec 20, 2019

No description provided.

@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch 2 times, most recently from d0001d5 to d572fdd Compare December 21, 2019 16:36
@myitcv myitcv changed the title [WIP] cmd/govim: add config ExperimentalDisableTempModfile [WIP] cmd/govim: add config ExperimentalTempModfile Dec 21, 2019
@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch 2 times, most recently from fba3769 to 61b8c76 Compare December 21, 2019 16:49
@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch 3 times, most recently from 3f276b6 to b32d0d3 Compare December 22, 2019 14:35
@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch 2 times, most recently from 56fd2b4 to 79358f9 Compare January 23, 2020 00:27
@myitcv myitcv changed the title [WIP] cmd/govim: add config ExperimentalTempModfile cmd/govim: add config ExperimentalTempModfile Jan 23, 2020
@myitcv myitcv requested a review from leitzler January 23, 2020 00:31
@myitcv
Copy link
Member Author

myitcv commented Jan 23, 2020

As you can see the test is skipped pending a fix in golang/go#36247. But merging the skipped test enables a fix to be more easily verified.

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 with a couple of comments

@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch from 79358f9 to 71fa618 Compare January 25, 2020 20:14
@myitcv
Copy link
Member Author

myitcv commented Jan 25, 2020

Per comments above, this is now dependent on #713

ExperimentalTempModfile corresponds to the gopls config setting
"tempModfile" which controls whether a temporary modfile is used in
place of the main module's original go.mod file. When enabled, any
user-initiated changes (to .go files) that would otherwise have resulted
in changes to the original go.mod file, e.g. adding an import for a
package whose module is not listed as a requirement, get raised as
diagnostic warnings with suggested fixes which update the go.mod file.

Add a test that locks in the current behaviour.
@myitcv myitcv force-pushed the cmd_govim_add_config_to_disable_temp_modfile branch from 71fa618 to f24837a Compare January 26, 2020 01:22
@myitcv myitcv merged commit 8f4859d into master Jan 26, 2020
@myitcv myitcv deleted the cmd_govim_add_config_to_disable_temp_modfile branch January 26, 2020 08:41
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