filebrowser: fix updateScript for ryantm builds
The package's updateScript (or ryantm's invocation of it) does not pass --subpackage frontend to nix-update. Without that flag, nix-update tries to update hashes in a single pass and hits the circular-ish dependency: goModules needs the frontend, but the frontend's pnpmDeps hash hasn't been updated yet. With this fix, when ryantm (or anyone) triggers the update script, nix-update will know to update the frontend subpackage's hashes first, then proceed to update the main package's hashes — exactly what you do manually Signed-off-by: Hritwik <hritwiksinghal@protonmail.com>
This commit is contained in:
@@ -72,7 +72,12 @@ buildGoModule {
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--subpackage"
|
||||
"frontend"
|
||||
];
|
||||
};
|
||||
inherit frontend;
|
||||
tests = {
|
||||
inherit (nixosTests) filebrowser;
|
||||
|
||||
Reference in New Issue
Block a user