Skip to content

Commit

Permalink
Add debug statement for exact zstd version value and remove dependenc…
Browse files Browse the repository at this point in the history
…e on version for now
  • Loading branch information
lvpx committed Feb 20, 2023
1 parent 7c15bf6 commit e6e2984
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cache/src/internal/cacheUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function getVersion(
additionalArgs.push('--version')
core.debug(`Checking ${app} ${additionalArgs.join(' ')}`)
try {
await exec.exec(`${app} `, additionalArgs, {
await exec.exec(`${app}`, additionalArgs, {
ignoreReturnCode: true,
silent: true,
listeners: {
Expand All @@ -100,9 +100,9 @@ async function getVersion(
export async function getCompressionMethod(): Promise<CompressionMethod> {
const versionOutput = await getVersion('zstd', ['--quiet'])
const version = semver.clean(versionOutput)
core.debug(`zstd version: ${version}`)

if (versionOutput === '' || version === null) {
// zstd is not installed
if (versionOutput === '') {
return CompressionMethod.Gzip
} else {
return CompressionMethod.ZstdWithoutLong
Expand Down

0 comments on commit e6e2984

Please sign in to comment.