go-project-blueprint
go-project-blueprint copied to clipboard
"Problems" with makefile
Hi, whenever I try to apply make test
, the following appears:
flag provided but not defined: -u
Usage of id:
-in string
path to NodeIds.csv (default "schema/NodeIds.csv")
-out string
path to generated file (default "id/id_gen.go")
flag provided but not defined: -g
Usage of id:
-in string
path to NodeIds.csv (default "schema/NodeIds.csv")
-out string
path to generated file (default "id/id_gen.go")
Running tests:
build github.com/MartinHeinz/go-project-blueprint/cmd/blueprint: cannot load github.com/alecthomas/template: open /src/vendor/github.com/alecthomas/template: no such file or directory
make: *** [test] Error 1
It seems like some command underneath is using wrong flags. (this is just a warning)
But, the process ends with failure because it is assuming the user had installed dependencies with go mod vendor
. Maybe you should add that step to prevent that.
I tried going from scratch to reproduce your problem:
git clone [email protected]:MartinHeinz/go-project-blueprint.git
cd go-project-blueprint/
go mod vendor
make test
Output:
Running tests:
ok github.com/MartinHeinz/go-project-blueprint/cmd/blueprint 0.004s
? github.com/MartinHeinz/go-project-blueprint/cmd/blueprint/config [no test files]
? github.com/MartinHeinz/go-project-blueprint/pkg [no test files]
Checking gofmt: PASS
Checking go vet: PASS
Works for me as expected, so please provide more context, if the issue persists.