From 22a8fa0db1b22f213520dc81ccdd219db88c1d1e Mon Sep 17 00:00:00 2001 From: James Palmer Date: Thu, 8 Oct 2020 18:54:04 +0000 Subject: [PATCH] Allow recipe to install rsrc executable Modules prevent the installation of executables using the standard `go get` syntax. Using `GOMODULE111=off` should fix this until [#40276](https://github.com/golang/go/issues/40276) is implemented. See also: [#27643](https://github.com/golang/go/issues/27643) [#30515](https://github.com/golang/go/issues/30515) [#171660042](https://www.pivotaltracker.com/story/show/171660042) Co-authored-by: Sebastian Vidrio --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c692ccfc9..ae1634232b 100644 --- a/Makefile +++ b/Makefile @@ -177,8 +177,12 @@ out/cf-cli_winx64.exe: $(GOSRC) rsrc.syso rm rsrc.syso rsrc.syso: + @# 'Temporarily' using GOMODULE111 hack: see + @# [#27643](https://github.com/golang/go/issues/27643) + @# [#30515](https://github.com/golang/go/issues/30515) + @# [#40276](https://github.com/golang/go/issues/40276) @# Software for windows icon - go get github.com/akavel/rsrc + GOMODULE111=off go get github.com/akavel/rsrc @# Generates icon file rsrc -ico cf.ico