PacktPublishing / Event-Driven-Architecture-in-Golang

Event-Driven Architecture in Golang, published by Packt
MIT License
315 stars 103 forks source link

Chapter 3: running make install-tools throws error #12

Open crinne opened 3 months ago

crinne commented 3 months ago

I run into problems when executing make

❯ make install-tools
installing tools
/bin/sh: @go: command not found
make: *** [install-tools] Error 127

When I removed " && \" from Makefile it worked for me.

Looks like this

install-tools:
    @echo installing tools # removed  && \
    @go install \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
    github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
    google.golang.org/protobuf/cmd/protoc-gen-go \
    google.golang.org/grpc/cmd/protoc-gen-go-grpc
    @echo done

Laptop: iMac 3,6 GHz Quad-Core Intel Core i7 make: GNU Make 3.81 go: go version go1.22.2 darwin/amd64

0xBradock commented 2 months ago

Hello, there is a typo on line 3.

# The at symbol should be removed
@go install \

go install \