1
0
Fork 0

Add debug statement for exact zstd version value and remove dependence on version for now

pull/1353/head
Lovepreet Singh 2023-02-20 19:03:44 +00:00
parent 7c15bf6f40
commit e6e29846f2
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ async function getVersion(
export async function getCompressionMethod(): Promise<CompressionMethod> { export async function getCompressionMethod(): Promise<CompressionMethod> {
const versionOutput = await getVersion('zstd', ['--quiet']) const versionOutput = await getVersion('zstd', ['--quiet'])
const version = semver.clean(versionOutput) const version = semver.clean(versionOutput)
core.debug(`zstd version: ${version}`)
if (versionOutput === '' || version === null) { if (versionOutput === '') {
// zstd is not installed
return CompressionMethod.Gzip return CompressionMethod.Gzip
} else { } else {
return CompressionMethod.ZstdWithoutLong return CompressionMethod.ZstdWithoutLong