File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ echo "TARGET: $TARGET"
2020echo " Platform: $OS /$ARCH "
2121
2222# Set up environment variables (similar to setup-environment job)
23- VERSION=${VERSION:- $(git describe --tags --first-parent --abbrev=7 --long --dirty -- always | sed -e " s/^v//g" )}
23+ VERSION=${VERSION:- $(git describe --tags --first-parent --abbrev=7 --always | sed -e " s/^v//g" )}
2424GOFLAGS=" '-ldflags=-w -s \" -X=github.com/ollama/ollama/version.Version=$VERSION \" \" -X=github.com/ollama/ollama/server.mode=release\" '"
2525
2626echo " VERSION: $VERSION "
Original file line number Diff line number Diff line change 11# Common environment setup across build*.sh scripts
22
3- export VERSION=${VERSION:- $(git describe --tags --first-parent --abbrev=7 --long --dirty -- always | sed -e " s/^v//g" )}
3+ export VERSION=${VERSION:- $(git describe --tags --first-parent --abbrev=7 --always | sed -e " s/^v//g" )}
44export GOFLAGS=" '-ldflags=-w -s \" -X=github.com/ollama/ollama/version.Version=$VERSION \" \" -X=github.com/ollama/ollama/server.mode=release\" '"
55# TODO - consider `docker buildx ls --format=json` to autodiscover platform capability
66PLATFORM=${PLATFORM:- " linux/arm64,linux/amd64" }
You can’t perform that action at this time.
0 commit comments