From b89280ea53a05986ef2765508b331650125ab84c Mon Sep 17 00:00:00 2001 From: Jan-Robin Aumann <136792097+bmo-at-a9s@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:00:52 +0100 Subject: [PATCH] Remove legacy GO111MODULE flag and update swag binary (#106) * Remove legacy GO111MODULE flag and update swag binary * Add fix for type resolution --- build/bk-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/bk-build.sh b/build/bk-build.sh index 2c959ae031..cc6aa6f80e 100755 --- a/build/bk-build.sh +++ b/build/bk-build.sh @@ -34,17 +34,17 @@ go env # Need to install swag in both cases echo "Generating OpenAPI documentation..." -go install github.com/swaggo/swag/cmd/swag@v1.6.7 -swag init +go install github.com/swaggo/swag/cmd/swag@v1.16.2 +swag init --parseDependency if [ "${ACTION}" == "build" ]; then echo "Building backend ..." echo "Building version: ${VERSION}" - GO111MODULE=on go build -ldflags -X=main.appVersion=${VERSION} + go build -ldflags -X=main.appVersion=${VERSION} echo "Build complete ..." else echo "Running backend tests ..." - GO111MODULE=on go test ./... -v -count=1 -coverprofile=coverage.txt -covermode=atomic + go test ./... -v -count=1 -coverprofile=coverage.txt -covermode=atomic fi popd > /dev/null