grafana: fix find(1) brackets in go.mod fixup

DAMN you `find`!

The parentheses are only necessary when having `-exec` 🫠
It does what I expected, i.e. finding EVERY go.mod and go.work instead
of only go.work when not using `-exec`.
This commit is contained in:
Maximilian Bosch
2025-10-22 12:39:08 +02:00
parent 4e4dfda28b
commit d5fd4f001b
+1 -1
View File
@@ -64,7 +64,7 @@ buildGoModule (finalAttrs: {
# This is still better than maintaining some list of go.mod files (or exclusions of that)
# where to patch the go version (and where to not do that).
postPatch = ''
find . -name go.mod -or -name "go.work" -type f -exec sed -i -e 's/^go .*/go ${finalAttrs.passthru.go.version}/g' {} \;
find . \( -name go.mod -or -name "go.work" \) -type f -exec sed -i -e 's/^go .*/go ${finalAttrs.passthru.go.version}/g' {} \;
'';
proxyVendor = true;