fix ver for dockerfile and go

# Conflicts:
#	go/go.mod
#	go/go.sum
This commit is contained in:
elianddb
2025-09-16 16:28:27 -07:00
parent 459aab0a3d
commit d311f0efe7

View File

@@ -30,13 +30,14 @@ RUN if [ "$DOLT_VERSION" = "source" ]; then \
FROM base AS download-binary
ARG DOLT_VERSION
RUN if [ "$DOLT_VERSION" != "source" ]; then \
[ "$DOLT_VERSION" = "latest" ] && \
# Fetch latest version number from GitHub API
DOLT_VERSION=$(curl -s https://api.github.com/repos/dolthub/dolt/releases/latest \
| grep '"tag_name"' \
| cut -d'"' -f4 \
| sed 's/^v//') && \
RUN if [ "$DOLT_VERSION" = "latest" ]; then \
# Fetch latest version number from GitHub API
DOLT_VERSION=$(curl -s https://api.github.com/repos/dolthub/dolt/releases/latest \
| grep '"tag_name"' \
| cut -d'"' -f4 \
| sed 's/^v//'); \
fi && \
if [ "$DOLT_VERSION" != "source" ]; then \
curl -L "https://github.com/dolthub/dolt/releases/download/v${DOLT_VERSION}/install.sh" | bash; \
fi