From 45f726809da69d680ce81d836ac27cbbb8cce506 Mon Sep 17 00:00:00 2001 From: "denis.fortin" Date: Fri, 18 Oct 2024 17:39:41 +0200 Subject: [PATCH] chore: update build script with new sourcegraph package name Change-Id: Ic822b838b9e29b1b5e1495422df01c6952549a97 --- .gitignore | 1 + build-deploy.sh | 8 ++++++-- build.sh | 8 ++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 054270c28..d52a8ef56 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ bazel-bin bazel-out bazel-testlogs bazel-zoekt +zoekt-bin diff --git a/build-deploy.sh b/build-deploy.sh index 7fb442fb7..e4a41be99 100755 --- a/build-deploy.sh +++ b/build-deploy.sh @@ -18,9 +18,13 @@ set -u out=zoekt-${VERSION} mkdir -p ${out} -for d in $(find cmd -maxdepth 1 -type d) +for d in $(find cmd/ -maxdepth 1 -type d) do - go build -tags netgo -ldflags "-X github.com/google/zoekt.Version=$VERSION" -o ${out}/$(basename $d) github.com/google/zoekt/$d + go build \ + -tags netgo \ + -ldflags "-X github.com/sourcegraph/zoekt.Version=dev" \ + -o ${out}/$(basename $d) \ + github.com/sourcegraph/zoekt/$d done cat < ${out}/deploy.sh diff --git a/build.sh b/build.sh index 84fd0a44e..ef25dccc4 100755 --- a/build.sh +++ b/build.sh @@ -10,9 +10,13 @@ set -u out=zoekt-bin mkdir -p ${out} -for d in $(find cmd -maxdepth 1 -type d) +for d in $(find cmd/ -maxdepth 1 -type d) do - go build -tags netgo -ldflags "-X github.com/google/zoekt.Version=dev" -o ${out}/$(basename $d) github.com/google/zoekt/$d + go build \ + -tags netgo \ + -ldflags "-X github.com/sourcegraph/zoekt.Version=dev" \ + -o ${out}/$(basename $d) \ + github.com/sourcegraph/zoekt/$d done chmod 755 ${out}/*