1
0
Fork 0

Add debug statements

pull/1353/head
Lovepreet Singh 2023-02-20 10:05:34 +00:00
parent d2b7d85e7c
commit f2aa430c9d
1 changed files with 2 additions and 0 deletions

View File

@ -95,7 +95,9 @@ async function getVersion(app: string): Promise<string> {
// Use zstandard if possible to maximize cache performance
export async function getCompressionMethod(): Promise<CompressionMethod> {
const versionOutput = await getVersion('zstd')
core.debug(`versionOutput: ${versionOutput}`)
const version = semver.clean(versionOutput)
core.debug(`version: ${version}`)
if (!versionOutput.toLowerCase().includes('zstd command line interface')) {
// zstd is not installed