Skip to content

Commit

Permalink
Remove legacy GO111MODULE flag and update swag binary (#106)
Browse files Browse the repository at this point in the history
* Remove legacy GO111MODULE flag and update swag binary

* Add fix for type resolution
  • Loading branch information
bmo-at-a9s authored Feb 7, 2024
1 parent 90769d3 commit b89280e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/bk-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b89280e

Please sign in to comment.