From 229ef4435d7bd78d9ce093d849c7d707183c38a7 Mon Sep 17 00:00:00 2001 From: Justin Kaseman Date: Mon, 16 Dec 2024 21:18:17 -0800 Subject: [PATCH] npx --- tools/bin/goreleaser_utils | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/bin/goreleaser_utils b/tools/bin/goreleaser_utils index 6bca0aca1f7..e38acf6494b 100755 --- a/tools/bin/goreleaser_utils +++ b/tools/bin/goreleaser_utils @@ -13,6 +13,7 @@ before_hook() { install_local_plugins install_remote_plugins mkdir -p "$lib_path/plugins" + build_standard_capabilities # Retrieve GOPATH GOPATH=$(go env GOPATH) @@ -72,9 +73,12 @@ get_remote_plugin_paths() { } build_standard_capabilities() { + cd ./capabilities + npx nx@19.8.2 init ./nx run-many -t build - # binaries get put into /bin under /bin/amd64 and /bin/arm64 - cp "./bin/$(go env GOARCH)"/* "$lib_path/plugins" + # binaries get put into /bin under /bin/amd64/ and /bin/arm64/ + cp "./bin/$(go env GOARCH)"/* "../$lib_path/plugins" + cd ../ } install_remote_plugins() { @@ -84,7 +88,6 @@ install_remote_plugins() { go install "${ldflags[@]}" "$plugin" done - build_standard_capabilities } # binary build post hook