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.

(cherry picked from commit eb435dcd1f)
This commit is contained in:
Morgan Jones 2026-07-03 04:51:46 -07:00 committed by github-actions[bot]
commit a2461c700f
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,