Skip to content

Commit

Permalink
Allow recipe to install rsrc executable
Browse files Browse the repository at this point in the history
Modules prevent the installation of executables using the standard
`go get` syntax. Using `GOMODULE111=off` should fix this until
[#40276](golang/go#40276) is implemented.

See also:
[#27643](golang/go#27643)
[#30515](golang/go#30515)

[#171660042](https://www.pivotaltracker.com/story/show/171660042)

Co-authored-by: Sebastian Vidrio <svidrio@vmware.com>
  • Loading branch information
jpalmerpivotal and vitreuz committed Oct 8, 2020
1 parent 80d2c10 commit 22a8fa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22a8fa0

Please sign in to comment.