Skip to content

Commit a909c7f

Browse files
committed
Fixed Golang programs compilation problem.
1 parent f475244 commit a909c7f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

compile-docker/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ services:
4242
image: golang:alpine
4343
container_name: js_calculations_compile
4444
command: sh -c "apk add --no-cache git &&
45+
go env -w GO111MODULE=auto &&
4546
cd /go/src/calculations/ &&
4647
go get ./... &&
4748
go build &&
@@ -54,6 +55,7 @@ services:
5455
image: golang:alpine
5556
container_name: js_i104m_compile
5657
command: sh -c "apk add --no-cache git &&
58+
go env -w GO111MODULE=auto &&
5759
cd /go/src/i104m/ &&
5860
go get ./... &&
5961
go build &&

docs/install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ Build the code (use inverted slashes, .exe extension and copy instead of cp on W
162162
dotnet publish --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o ../../../bin/
163163

164164
export GOBIN=~/json-scada/bin
165+
go env -w GO111MODULE=auto
166+
165167
cd ../../calculations
166168
go get ./...
167169
go build

platform-linux/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ cd ../dnp3/Dnp3Client
1313
dotnet publish --runtime linux-x64 -p:PublishReadyToRun=true -c Release -o ../../../bin/
1414

1515
export GOBIN=~/json-scada/bin
16+
go env -w GO111MODULE=auto
17+
1618
cd ../../calculations
1719
go get ./...
1820
go build

platform-windows/build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dotnet build --runtime win-x64 -c Release -o ..\..\bin\
2828
cd \json-scada\src\libplctag\PLCTagsClient
2929
dotnet publish --runtime win-x64 -p:PublishReadyToRun=true -c Release -o ..\..\..\bin\
3030

31+
go env -w GO111MODULE=auto
3132
set GOBIN=c:\json-scada\bin
3233
cd \json-scada\src\calculations
3334
go get ./...

0 commit comments

Comments
 (0)