diff --git a/containers/pyroscope/default.nix b/containers/pyroscope/default.nix index 33c6e64..69e03e6 100644 --- a/containers/pyroscope/default.nix +++ b/containers/pyroscope/default.nix @@ -35,9 +35,9 @@ let 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 - sed -i "/from: 'node_modules\/@grafana\/ui\/dist\/public\/img\/icons'/,/to:/d" \ + # Rewrite the CopyPlugin icons path to point at our pre-copied location + # instead of the symlinked node_modules path that webpack can't glob + sed -i "s|from: 'node_modules/@grafana/ui/dist/public/img/icons'|from: 'public/build/grafana/build/img/icons'|" \ scripts/webpack/webpack.common.js yarn --offline build