Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add minimal tag to demo and local (#8536)

Danny Xu85ddedcbf537
diff --git a/backend/server/ultimate.go b/backend/server/ultimate.go
index 221673388d..fdac05bcac 100644
--- a/backend/server/ultimate.go
+++ b/backend/server/ultimate.go
@@ -1,3 +1,5 @@
+//go:build !minimal
+
package server
import (
diff --git a/scripts/.air.toml b/scripts/.air.toml
index 90a95f0763..e6c3ec6ecc 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -7,7 +7,7 @@ bin = './.air/bytebase --port 8080 --data . --debug --disable-sample'
## Use --tags "store.db" to enable SQL query logging against our metadata db.
cmd = """
go build \
- --tags "" \
+ --tags "minimal" \
-o ./.air/bytebase ./backend/bin/server/main.go"""
delay = 500
exclude_dir = [
diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demo
index 2b152711b5..2b4a73e3c0 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -48,7 +48,7 @@ COPY ./scripts/VERSION .
# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information
# go-sqlite3 requires CGO_ENABLED
RUN VERSION=`cat ./VERSION` && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build \
- --tags "${RELEASE},embed_frontend" \
+ --tags "${RELEASE},embed_frontend,minimal" \
-ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.goversion=${GO_VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${RENDER_GIT_COMMIT}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.buildtime=${BUILD_TIME}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.builduser=${BUILD_USER}'" \
-o bytebase \
./backend/bin/server/main.go