Files
akvorado/bin/external-tool
Vincent Bernat 44b37e8a82
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
Update Nix dependency hashes / Update dependency hashes (push) Has been cancelled
Update Go toolchain / Update Go toolchain (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (asn2org) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (iana-assignments) (push) Has been cancelled
Update Nix flake.lock / Update Nix lockfile (nixpkgs) (push) Has been cancelled
build: format a bit the list of tools
2025-11-15 15:55:33 +01:00

20 lines
469 B
Bash
Executable File

#!/bin/sh
# Wrapper to execute an external tool. This is used a bit like "go tool", but in
# a case we don't want to put the dependency in go.mod (which may be considered
# by an anti-pattern for some tools).
# See commit 414d626bf8f2 for an alternative.
cmd="$1"
shift
GO=${GO:-go}
export GOTOOLCHAIN=$(${GO} mod edit -print | sed -En 's/^toolchain //p')
case "$cmd" in
buf)
exec ${GO} run github.com/bufbuild/buf/cmd/buf@v1.57.0 "$@"
;;
esac