Skip to content

Commit

Permalink
chore: update build script with new sourcegraph package name
Browse files Browse the repository at this point in the history
Change-Id: Ic822b838b9e29b1b5e1495422df01c6952549a97
  • Loading branch information
denis.fortin committed Oct 18, 2024
1 parent 5431339 commit 45f7268
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ bazel-bin
bazel-out
bazel-testlogs
bazel-zoekt
zoekt-bin
8 changes: 6 additions & 2 deletions build-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > ${out}/deploy.sh
Expand Down
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}/*

0 comments on commit 45f7268

Please sign in to comment.