mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: ensure proper caching of buf tool
We use a wrapper and we include it in the hash for setup-go
This commit is contained in:
12
bin/external-tool
Executable file
12
bin/external-tool
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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).
|
||||
|
||||
cmd="$1"
|
||||
shift
|
||||
|
||||
case "$cmd" in
|
||||
buf) exec go run github.com/bufbuild/buf/cmd/buf@v1.55.1 "$@" ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user