Skip to content

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

chore: remove -w -s in ldflags to save symbol while passing to linker (#11058)

h3n4l089940bc85aa
diff --git a/scripts/.air.toml b/scripts/.air.toml
index 66bd9f4e9f..3cd63ff260 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -10,7 +10,7 @@ bin = './.air/bytebase --port 8080 --data . --debug --disable-sample'
cmd = """
go build \
-p=8 \
- -ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=$(git rev-parse HEAD)'" \
+ -ldflags="-X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=$(git rev-parse HEAD)'" \
--tags "minimal" \
-o ./.air/bytebase ./backend/bin/server/main.go"""
delay = 500