mattermostLatest: don't test unofficial patches

Warn if the user tries to enable them, and disable them in tests because
it's too much work to maintain them.
This commit is contained in:
Morgan Jones
2026-07-03 04:51:46 -07:00
parent e1a4f68f2a
commit eb435dcd1f
2 changed files with 6 additions and 6 deletions

View File

@@ -66,12 +66,7 @@ import ../make-test-python.nix (
# Upgrade to the latest Mattermost.
specialisation.latest.configuration = {
services.mattermost.package = lib.mkForce (
pkgs.mattermostLatest.override {
removeFreeBadge = true;
removeUserLimit = true;
}
);
services.mattermost.package = lib.mkForce pkgs.mattermostLatest;
system.stateVersion = lib.mkVMOverride (lib.versions.majorMinor lib.version);
};
}

View File

@@ -35,6 +35,11 @@
...
}:
assert lib.warnIf (latestVersionInfo != null && (removeUserLimit || removeFreeBadge)) ''
The user limit and free badge patches are not tested with this Mattermost version
(${latestVersionInfo.version}).
'' true;
let
/*
Helper function that sets the `withTests` and `withoutTests` passthru correctly,