From c9dbecdbb6a4daddb615e165813da745dc26c537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20Ku=CC=88c=CC=A7u=CC=88k?= Date: Mon, 1 Mar 2021 09:55:55 +0300 Subject: [PATCH] Refactor GO111MODULE flag --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee7a493..51a1d4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,9 +78,9 @@ jobs: run: | INTEGRATION_PATH=oec-linux/${{ env.INTEGRATION_FOLDER }}/opsgenie-${{ env.INTEGRATION_NAME }} echo ${INTEGRATION_PATH} - go get -u github.com/alexcesaro/log && \ + GO111MODULE=auto go get -u github.com/alexcesaro/log && \ cd ${INTEGRATION_PATH} && \ - GO111MODULE=auto GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go + GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go - name: Compressing Linux Package run: | cd .release/oec-linux/ @@ -141,9 +141,9 @@ jobs: run: | INTEGRATION_PATH=oec-rpm/oec-scripts/opsgenie-${INTEGRATION_NAME} echo ${INTEGRATION_PATH} - go get -u github.com/alexcesaro/log && \ + GO111MODULE=auto go get -u github.com/alexcesaro/log && \ cd ${INTEGRATION_PATH} && \ - GO111MODULE=auto GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go + GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go - name: Create RPM Package working-directory: .release/oec-rpm run: | @@ -235,9 +235,9 @@ jobs: run: | INTEGRATION_PATH=oec-deb/home/opsgenie/oec/opsgenie-${{ env.INTEGRATION_NAME }} echo ${INTEGRATION_PATH} - go get -u github.com/alexcesaro/log && \ + GO111MODULE=auto go get -u github.com/alexcesaro/log && \ cd ${INTEGRATION_PATH} && \ - GO111MODULE=auto GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go + GOOS=linux GOARCH=amd64 go build -o send2opsgenie send2opsgenie.go - name: Create Deb Package working-directory: .release/ run: | @@ -311,9 +311,9 @@ jobs: run: | INTEGRATION_PATH=oec-win32/${{ env.INTEGRATION_FOLDER }}/opsgenie-${{ env.INTEGRATION_NAME }} echo ${INTEGRATION_PATH} - go get -u github.com/alexcesaro/log && \ + GO111MODULE=auto go get -u github.com/alexcesaro/log && \ cd ${INTEGRATION_PATH} && \ - GO111MODULE=auto GOOS=windows GOARCH=386 go build -o send2opsgenie32.exe send2opsgenie.go + GOOS=windows GOARCH=386 go build -o send2opsgenie32.exe send2opsgenie.go - name: Compressing Win32 Package run: | cd .release/oec-win32/ @@ -377,9 +377,9 @@ jobs: run: | INTEGRATION_PATH=oec-win64/${{ env.INTEGRATION_FOLDER }}/opsgenie-${{ env.INTEGRATION_NAME }} echo ${INTEGRATION_PATH} - go get -u github.com/alexcesaro/log && \ + GO111MODULE=auto go get -u github.com/alexcesaro/log && \ cd ${INTEGRATION_PATH} && \ - GO111MODULE=auto GOOS=windows GOARCH=amd64 go build -o send2opsgenie32.exe send2opsgenie.go + GOOS=windows GOARCH=amd64 go build -o send2opsgenie32.exe send2opsgenie.go - name: Compressing Win 64 Package run: | cd .release/oec-win64/