Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Problems" with makefile #3

Open
luisfmelo opened this issue Dec 13, 2019 · 1 comment
Open

"Problems" with makefile #3

luisfmelo opened this issue Dec 13, 2019 · 1 comment

Comments

@luisfmelo
Copy link

luisfmelo commented Dec 13, 2019

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 luisfmelo changed the title Problems with makefile "Problems" with makefile Dec 13, 2019
@MartinHeinz
Copy link
Owner

I tried going from scratch to reproduce your problem:

git clone git@github.com: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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants