bundle: fix for newer go version
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.runCommandNoCC "win-bundle-installer.exe" {} ''
|
||||
mkdir bundle
|
||||
cd bundle
|
||||
cp ${./go.mod} go.mod
|
||||
cp ${./main.go} main.go
|
||||
env HOME=$(mktemp -d) GOOS=windows GOARCH=amd64 ${pkgs.go}/bin/go build
|
||||
mv build.exe $out
|
||||
mv bundle.exe $out
|
||||
''
|
||||
|
||||
3
wfvm/bundle/go.mod
Normal file
3
wfvm/bundle/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module bundle
|
||||
|
||||
go 1.11
|
||||
Reference in New Issue
Block a user