mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 23:49:30 -05:00
bazel: add yq to PATH in go generate
This commit is contained in:
parent
aa00c43156
commit
cb22a25144
@ -320,6 +320,7 @@ sh_template(
|
|||||||
"//internal/versions/hash-generator",
|
"//internal/versions/hash-generator",
|
||||||
"@go_sdk//:bin/go",
|
"@go_sdk//:bin/go",
|
||||||
"@org_golang_x_tools//cmd/stringer",
|
"@org_golang_x_tools//cmd/stringer",
|
||||||
|
"@yq_toolchains//:resolved_toolchain",
|
||||||
],
|
],
|
||||||
substitutions = {
|
substitutions = {
|
||||||
"@@DOCGEN@@": "$(rootpath :com_github_siderolabs_talos_hack_docgen)",
|
"@@DOCGEN@@": "$(rootpath :com_github_siderolabs_talos_hack_docgen)",
|
||||||
@ -328,8 +329,10 @@ sh_template(
|
|||||||
"@@HELM@@": "$(rootpath :com_github_helm_helm)",
|
"@@HELM@@": "$(rootpath :com_github_helm_helm)",
|
||||||
"@@MEASUREMENT_GENERATOR@@": "$(rootpath //internal/attestation/measurements/measurement-generator:measurement-generator)",
|
"@@MEASUREMENT_GENERATOR@@": "$(rootpath //internal/attestation/measurements/measurement-generator:measurement-generator)",
|
||||||
"@@STRINGER@@": "$(rootpath @org_golang_x_tools//cmd/stringer:stringer)",
|
"@@STRINGER@@": "$(rootpath @org_golang_x_tools//cmd/stringer:stringer)",
|
||||||
|
"@@YQ@@": "$(YQ_BIN)",
|
||||||
},
|
},
|
||||||
template = "go_generate.sh.in",
|
template = "go_generate.sh.in",
|
||||||
|
toolchains = ["@yq_toolchains//:resolved_toolchain"],
|
||||||
)
|
)
|
||||||
|
|
||||||
# deps_mirror_fix fixes bazel workspace rules for external dependencies.
|
# deps_mirror_fix fixes bazel workspace rules for external dependencies.
|
||||||
|
@ -23,6 +23,8 @@ hash_generator=$(realpath @@HASH_GENERATOR@@)
|
|||||||
stat "${hash_generator}" >> /dev/null
|
stat "${hash_generator}" >> /dev/null
|
||||||
measurement_generator=$(realpath @@MEASUREMENT_GENERATOR@@)
|
measurement_generator=$(realpath @@MEASUREMENT_GENERATOR@@)
|
||||||
stat "${measurement_generator}" >> /dev/null
|
stat "${measurement_generator}" >> /dev/null
|
||||||
|
yq=$(realpath @@YQ@@)
|
||||||
|
stat "${yq}" >> /dev/null
|
||||||
|
|
||||||
cd "${BUILD_WORKSPACE_DIRECTORY}"
|
cd "${BUILD_WORKSPACE_DIRECTORY}"
|
||||||
|
|
||||||
@ -34,6 +36,7 @@ PATH=$(dirname "${docgen}"):${PATH}
|
|||||||
PATH=$(dirname "${helm}"):${PATH}
|
PATH=$(dirname "${helm}"):${PATH}
|
||||||
PATH=$(dirname "${hash_generator}"):${PATH}
|
PATH=$(dirname "${hash_generator}"):${PATH}
|
||||||
PATH=$(dirname "${measurement_generator}"):${PATH}
|
PATH=$(dirname "${measurement_generator}"):${PATH}
|
||||||
|
PATH=$(dirname "${yq}"):${PATH}
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
submodules=$(${go} list -f '{{.Dir}}' -m)
|
submodules=$(${go} list -f '{{.Dir}}' -m)
|
||||||
|
Loading…
Reference in New Issue
Block a user