From f727a352c327e34a9094deed27d8d2b4956bca0e Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Thu, 26 Mar 2026 14:50:37 -0700 Subject: [PATCH] Fix icons copy: use directory copy instead of glob expansion Co-Authored-By: Claude Opus 4.6 (1M context) --- containers/pyroscope/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/pyroscope/default.nix b/containers/pyroscope/default.nix index 273ea36..b74109a 100644 --- a/containers/pyroscope/default.nix +++ b/containers/pyroscope/default.nix @@ -31,9 +31,9 @@ let # Webpack CopyPlugin can't glob through these symlinks to find # @grafana/ui icons. Pre-copy them to the output location and patch # webpack to skip the CopyPlugin entry for icons. - icons_src="node_modules/@grafana/ui/dist/public/img/icons" - mkdir -p public/build/grafana/build/img/icons - cp -rL "$icons_src"/* public/build/grafana/build/img/icons/ + mkdir -p public/build/grafana/build/img + cp -rL node_modules/@grafana/ui/dist/public/img/icons \ + public/build/grafana/build/img/ # Remove the CopyPlugin icons entry from webpack config so it doesn't # fail on the symlinked glob