grafana-alloy: don't build the frontend twice

Prior to this, we built the frontend twice.
Once in the goModules derivation and then the second time in the actual
derivation.
This commit is contained in:
emilylange 2024-09-27 21:51:55 +02:00
parent 3cae63521d
commit ca1260a39d
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -55,6 +55,11 @@ buildGoModule rec {
"."
];
# Skip building the frontend in the goModules FOD
overrideModAttrs = (_: {
preBuild = null;
});
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/internal/web/ui/yarn.lock";
hash = "sha256-Jk+zqR/+NBde9ywncIEJM4kgavqiDvcIAjxJCSMrZDc=";