diff --git a/go.mod b/go.mod index 713b979..72fbddf 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/daulet/cmd -go 1.21.3 +go 1.23.0 require ( github.com/cohere-ai/cohere-go/v2 v2.7.0 diff --git a/scripts/release.sh b/scripts/release.sh index 1bd6cdc..af11284 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -29,9 +29,9 @@ for target in "${TARGETS[@]}"; do if [ ! -z "$GIT_TAGS" ]; then GIT_VERSION=$(git describe --tags $GIT_TAGS) - GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT -X main.GitVersion=$GIT_VERSION" -o "bin/$binary_name" -a cmd/main.go + CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT -X main.GitVersion=$GIT_VERSION" -o "bin/$binary_name" -a cmd/main.go else - GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT" -o "bin/$binary_name" -a cmd/main.go + CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT" -o "bin/$binary_name" -a cmd/main.go fi echo "done"