Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 5a553d7

Browse files
authored
bzl: fix logic to build enterprise repo-updater (#52464)
ensures we're building enterprise repo-updater ## Test plan CI and tested locally
1 parent c37d944 commit 5a553d7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cmd/repo-updater/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ cleanup() {
1212

1313
trap cleanup EXIT
1414
if [[ "${DOCKER_BAZEL:-false}" == "true" ]]; then
15-
./dev/ci/bazel.sh build //cmd/repo-updater
16-
out=$(./dev/ci/bazel.sh cquery //cmd/repo-updater --output=files)
15+
package=${1:-//cmd/repo-updater}
16+
./dev/ci/bazel.sh build "$package"
17+
out=$(./dev/ci/bazel.sh cquery "$package" --output=files)
1718
cp "$out" "$OUTPUT"
1819

1920
docker build -f cmd/repo-updater/Dockerfile -t "$IMAGE" "$OUTPUT" \

enterprise/cmd/repo-updater/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
set -ex
44
cd "$(dirname "${BASH_SOURCE[0]}")"/../../..
55

6+
if [[ "${DOCKER_BAZEL:-false}" == "true" ]]; then
7+
./cmd/repo-updater/build.sh //enterprise/cmd/repo-updater
8+
exit $?
9+
fi
10+
611
./cmd/repo-updater/build.sh github.com/sourcegraph/sourcegraph/enterprise/cmd/repo-updater

0 commit comments

Comments
 (0)