Skip to content

Commit 0beee53

Browse files
Nils WireklintNils Wireklint
Nils Wireklint
authored and
Nils Wireklint
committed
Explicitly request query label output
To work with users who prefer a different output in their personal rc file. Using '--nohome_rc' is not good either, if they want to change the output base this query would duplicate a lot of data.
1 parent 9de9f10 commit 0beee53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: .github/workflows/master.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"name": "Protobuf generation",
44-
"run": "find . bazel-bin/pkg/proto -name '*.pb.go' -delete || true\nbazel build $(bazel query 'kind(\"go_proto_library\", //...)')\nfind bazel-bin/pkg/proto -name '*.pb.go' | while read f; do\n cat $f > $(echo $f | sed -e 's|.*/pkg/proto/|pkg/proto/|')\ndone\n"
44+
"run": "find . bazel-bin/pkg/proto -name '*.pb.go' -delete || true\nbazel build $(bazel query --output=label 'kind(\"go_proto_library\", //...)')\nfind bazel-bin/pkg/proto -name '*.pb.go' | while read f; do\n cat $f > $(echo $f | sed -e 's|.*/pkg/proto/|pkg/proto/|')\ndone\n"
4545
},
4646
{
4747
"name": "Test style conformance",

Diff for: .github/workflows/pull-requests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"name": "Protobuf generation",
44-
"run": "find . bazel-bin/pkg/proto -name '*.pb.go' -delete || true\nbazel build $(bazel query 'kind(\"go_proto_library\", //...)')\nfind bazel-bin/pkg/proto -name '*.pb.go' | while read f; do\n cat $f > $(echo $f | sed -e 's|.*/pkg/proto/|pkg/proto/|')\ndone\n"
44+
"run": "find . bazel-bin/pkg/proto -name '*.pb.go' -delete || true\nbazel build $(bazel query --output=label 'kind(\"go_proto_library\", //...)')\nfind bazel-bin/pkg/proto -name '*.pb.go' | while read f; do\n cat $f > $(echo $f | sed -e 's|.*/pkg/proto/|pkg/proto/|')\ndone\n"
4545
},
4646
{
4747
"name": "Test style conformance",

Diff for: tools/github_workflows/workflows_template.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
name: 'Protobuf generation',
9797
run: |||
9898
find . bazel-bin/pkg/proto -name '*.pb.go' -delete || true
99-
bazel build $(bazel query 'kind("go_proto_library", //...)')
99+
bazel build $(bazel query --output=label 'kind("go_proto_library", //...)')
100100
find bazel-bin/pkg/proto -name '*.pb.go' | while read f; do
101101
cat $f > $(echo $f | sed -e 's|.*/pkg/proto/|pkg/proto/|')
102102
done

0 commit comments

Comments
 (0)