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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user