olebedev / go-starter-kit

[abandoned] Golang isomorphic react/hot reloadable/redux/css-modules/SSR starter kit
Other
2.82k stars 359 forks source link

Makefile:19: *** target pattern contains no `%'. Stop. #62

Closed abhishekaypurohit closed 7 years ago

abhishekaypurohit commented 7 years ago

I am transitioning from Java to Go, trying to build a web application with some UI.

After cloning repo I am running make install, but I am getting this error.

Makefile:19: *** target pattern contains no `%'. Stop.

Please let me know if I have missed anything.

olebedev commented 7 years ago

Hi @apurohitm, which Golang version do you use?

abhishekaypurohit commented 7 years ago

Thanks for reply @olebedev

Below is the version.

go version go1.7.3 darwin/amd64

joelnb commented 7 years ago

@apurohitm do you have a colon in your $GOPATH? I don't personally use it like that but it is a valid configuration as described here. If I add one I can reproduce this error:

mkdir /tmp/go
export GOPATH=$GOPATH:/tmp/go
make install

The reason for this is similar to the answer here.