From 6a521bb50b808480df225f636883207c32feca52 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Tue, 7 Nov 2023 09:46:20 +0000 Subject: [PATCH] Fix: Fix `Generate-DownloadBinary` function using wrong version --- generate/templates/Dockerfile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate/templates/Dockerfile.ps1 b/generate/templates/Dockerfile.ps1 index 2b74531..10c5bd8 100644 --- a/generate/templates/Dockerfile.ps1 +++ b/generate/templates/Dockerfile.ps1 @@ -4,7 +4,7 @@ function Generate-DownloadBinary ($o) { if ($o['checksumsUrl']) { Set-Checksums "$( $o['binary'] )-$( $o['version'] )" $o['checksumsUrl'] }else { - $release = Invoke-RestMethod "https://api.github.com/repos/$( $o['repository'] )/releases/tags/v1.0.3" + $release = Invoke-RestMethod "https://api.github.com/repos/$( $o['repository'] )/releases/tags/$( $o['version'] )" $releaseAssetsFiles = $release.assets | ? { $_.name -match [regex]::Escape($o['binary']) -and $_.name -notmatch '\.sha\d+$' } $files = [ordered]@{} foreach ($f in $releaseAssetsFiles ) {