You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go: -mod may only be set to readonly or vendor when in workspace mode, but it is set to "mod"
Remove the -mod flag to use the default readonly value,
or set GOWORK=off to disable workspace mode.
what is wrong?
//go:generate go run -mod=mod github.com/google/wire/cmd/wire
can not work.
edit the code to this:
//go:generate go run github.com/google/wire/cmd/wire
can work.
while after work the code is replace back to:
//go:generate go run -mod=mod github.com/google/wire/cmd/wire
then can not work.
I have to edit the code again.
may be there is some thing wrong here:
buf.WriteString("// Code generated by Wire. DO NOT EDIT.\n\n")
buf.WriteString("//go:generate go run -mod=mod github.com/google/wire/cmd/wire" + tags + "\n")
buf.WriteString("//+build !wireinject\n\n")
buf.WriteString("package ")
buf.WriteString(g.pkg.Name)
buf.WriteString("\n\n")
it always generete code:
//go:generate go run -mod=mod github.com/google/wire/cmd/wire
or may be there is some other wrong.
but I don't know how to fix it.
The text was updated successfully, but these errors were encountered:
my problem is:
go: -mod may only be set to readonly or vendor when in workspace mode, but it is set to "mod"
Remove the -mod flag to use the default readonly value,
or set GOWORK=off to disable workspace mode.
what is wrong?
can not work.
edit the code to this:
can work.
while after work the code is replace back to:
then can not work.
I have to edit the code again.
may be there is some thing wrong here:
it always generete code:
or may be there is some other wrong.
but I don't know how to fix it.
The text was updated successfully, but these errors were encountered: