Gate zstd enablement on tar version

This commit is contained in:
Henry Mercer 2024-09-23 19:35:35 +01:00
parent b1ca017eae
commit db98c27941
6 changed files with 24 additions and 20 deletions

5
lib/feature-flags.js generated
View file

@ -24,7 +24,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Features = exports.FEATURE_FLAGS_FILE_NAME = exports.featureConfig = exports.Feature = exports.CODEQL_VERSION_FINE_GRAINED_PARALLELISM = void 0;
exports.useZstdBundle = useZstdBundle;
const fs = __importStar(require("fs"));
const path = __importStar(require("path"));
const semver = __importStar(require("semver"));
@ -349,8 +348,4 @@ class GitHubFeatureFlags {
}
}
}
async function useZstdBundle(cliVersion, features) {
return (semver.gte(cliVersion, "2.19.0") &&
!!(await features.getValue(Feature.ZstdBundle)));
}
//# sourceMappingURL=feature-flags.js.map