Merge pull request #90206 from Ericson2314/faster-release-eval

release-lib: Avoid filtering twice
This commit is contained in:
John Ericson 2020-06-14 15:50:02 -04:00 committed by GitHub
commit e97e3b8641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ rec {
let res = builtins.tryEval (
if isDerivation value then
value.meta.hydraPlatforms
or (supportedMatches (value.meta.platforms or [ "x86_64-linux" ]))
or (value.meta.platforms or [ "x86_64-linux" ])
else if value.recurseForDerivations or false || value.recurseForRelease or false then
packagePlatforms value
else