When attempting to generate from a file with a build tag, gowrap exits with an error.
//go:build unit
package main
//go:generate gowrap gen -g -p . -i TestInterface -t prometheus -o prom.go
type TestInterface interface{
TestMethod()
}
go generate -tags unit ./...
failed to load source package: -: build constraints exclude all Go files in /path/to/package
path/to/package/prom_test.go:5: running "gowrap": exit status 1
When attempting to generate from a file with a build tag, gowrap exits with an error.