-
Notifications
You must be signed in to change notification settings - Fork 645
go test: i flag may be set only once #1064
Comments
We do have a separate setting called testFlags which gets used when running tests via the test commands Do you have buildOnSave set to "workspace"? That runs go test ./... (but does not actually run the test) using the buildflags. That's causing the problem. Couldn't find any other way to build all files (including test files) in the workspace From the past couple of releases we have been setting -i by default while building So you can skip passing it via buildflags to fix the issue you are seeing Am on a vacation right now. Once am back, will fix the usage of flags so that the double use issue wont occur again |
We do have a separate setting called testFlags which gets used when running tests via the test commands
Do you have buildOnSave set to "workspace"? That runs go test ./... (but does not actually run the test) using the buildflags. That's causing the problem. Couldn't find a way to build all files (including test files) in the workspace
When this started happening I saw that option and switched it to package. That was a very nice change.
From the past couple of releases we have been setting -i by default while building
This is always an excellent change. So then I guess I don’t need to do anything!
So you can skip passing it via buildflags to fix the issue you are seeing
Am on a vacation right now. Once am back, will fix the usage of flags so that the double use issue wont occur again
Thanks for responding on vacation.
I think that the flags should be separate for each tool.
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1064 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACLKRQA6gsiLf5cEnphNjmm0mEixytZQks5sKcNtgaJpZM4OLZhq>.
|
The fix to ignore the |
I use the "-i" flag on building but this is also being applied to go test.
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:
The help for
go test
says:Can we set flags separately for build and test?
The text was updated successfully, but these errors were encountered: