Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

go test: i flag may be set only once #1064

Description

I use the "-i" flag on building but this is also being applied to go test.

"go.buildFlags": ["-i"],

It appears "go test" is being run in the background when I open a test file.

This is the error I get at the top of the source file for the package statement:

go test: i flag may be set only once
run "go help test" or "go help testflag" for more information

The help for go test says:

	-i
	    Install packages that are dependencies of the test.
	    Do not run the test.

Can we set flags separately for build and test?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions