Unverified Commit d5fd4f00 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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`.
parent 4e4dfda2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;