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
2 people authored and Lisa Burns committed Oct 21, 2020
1 parent 32c8e80 commit 58b9db9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -183,8 +183,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 58b9db9

Please sign in to comment.