Replies: 2 comments 2 replies
-
See some of the workarounds in golang/go#29202. I think this one works, but untested: "gopls": {
"buildFlags": ["-tags=wireinject"]
}, |
Beta Was this translation helpful? Give feedback.
1 reply
-
It works for me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
If we have a go file that call
wire.Build
, we put a build constraint to the start of the file. Thegopls
will prompt the following message saying that no packages found.If we remove the empty line between the build constraint and the
package
, it behave like the issue described here #117To Reproduce
Expected behavior
No warnings.
Version
Additional context
My vscode settings
Beta Was this translation helpful? Give feedback.
All reactions