go-project-blueprint icon indicating copy to clipboard operation
go-project-blueprint copied to clipboard

"Problems" with makefile

Open luisfmelo opened this issue 5 years ago • 1 comments

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.

luisfmelo avatar Dec 13 '19 23:12 luisfmelo

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.

MartinHeinz avatar Dec 14 '19 14:12 MartinHeinz