fix: include extended & with deploy in tool version for proper caching
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Failing after 39s
Continuous Integration / GitHub Actions Test (push) Successful in 10s
Renovate / renovate (push) Successful in 53s
Continuous Integration / TypeScript Tests (push) Has been cancelled

This commit is contained in:
Peter 2024-11-27 20:20:06 +01:00
parent 10b6b9aa45
commit ad69e54f1e
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -41,12 +41,16 @@ export class HugoInstaller {
const hugoBinName = this.platform.binaryName(Hugo.CmdName)
const tmpDir = os.tmpdir()
let versionSpec = release.tag_name
if (cmd.extended) {
versionSpec += '+extended'
}
if (cmd.withDeploy) {
versionSpec += '+withdeploy'
}
try {
const cachedTool = tc.find(
Hugo.Name,
release.tag_name,
this.platform.arch
)
const cachedTool = tc.find(Hugo.Name, versionSpec, this.platform.arch)
if (cachedTool) {
core.addPath(cachedTool)
return
@ -81,7 +85,7 @@ export class HugoInstaller {
path.join(tmpDir, hugoBinName),
hugoBinName,
Hugo.Name,
release.tag_name,
versionSpec,
this.platform.arch
)