Skip to content

Commit 59d7b21

Browse files
committed
Fix cquery target names
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent d9c1356 commit 59d7b21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/cloud_build_release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ echo "The image tag is: ${release_tag}"
3737
image_repo="gcr.io/pixie-oss/pixie-prod"
3838

3939
all_licenses_opts=("//tools/licenses:all_licenses" "--config=stamp" "--action_env=GOOGLE_APPLICATION_CREDENTIALS" "--remote_download_outputs=toplevel")
40-
all_licenses_path="$(bazel cquery "${all_licenses_opts[@]}" --output starlark --starlark:expr "target.files.to_list()[0].path" 2> /dev/null)"
41-
deps_missing_licenses_path="$(bazel cquery "${all_licenses_opts[@]}" --output starlark --starlark:expr "[f.path for f in target.files.to_list() if f.basename == 'deps_licenses_missing.json'][0]" 2> /dev/null)"
40+
all_licenses_path="$(bazel cquery "//tools/licenses:go_licenses" --output starlark --starlark:expr "target.files.to_list()[0].path" 2> /dev/null)"
41+
deps_missing_licenses_path="$(bazel cquery "//tools/licenses:deps_licenses" --output starlark --starlark:expr "[f.path for f in target.files.to_list() if f.basename == 'deps_licenses_missing.json'][0]" 2> /dev/null)"
4242
go_missing_licenses_path="$(bazel cquery "${all_licenses_opts[@]}" --output starlark --starlark:expr "[f.path for f in target.files.to_list() if f.basename == 'go_licenses_missing.json'][0]" 2> /dev/null)"
4343

4444
print_missing_licenses() {

0 commit comments

Comments
 (0)