Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Ignore go build failure in makefile #48

Open
dfilipovic39 opened this issue Jun 9, 2016 · 1 comment
Open

Ignore go build failure in makefile #48

dfilipovic39 opened this issue Jun 9, 2016 · 1 comment

Comments

@dfilipovic39
Copy link

dfilipovic39 commented Jun 9, 2016

Hi,
there seems to be a problem when you modify go code, and makefile tries to rebuild server. If there is any compile time error the makefile recipe crashes.

Possible soultion would be prefixing build command with - :
-@go build -ldflags '$(LDFLAGS)' -o $@ $(IMPORT_PATH)/server

Failed build will be ignored this way and old binary would be used

@olebedev
Copy link
Owner

olebedev commented Jun 9, 2016

Hi @tarqe39,

thank you for the suggestion! BTW, pull requests are welcome.

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

No branches or pull requests

2 participants