File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class NixGoBuilder : GoBuilder {
4444 $installationTemplateLocation = Join-Path - Path $this.InstallationTemplatesLocation - ChildPath $this.InstallationTemplateName
4545
4646 $installationTemplateContent = Get-Content - Path $installationTemplateLocation - Raw
47- $installationTemplateContent = $installationTemplateContent -f $this.Version.ToString (3 )
47+ $installationTemplateContent = $installationTemplateContent -f $this.Version.ToString (3 ), $this .Architecture
4848 $installationTemplateContent | Out-File - FilePath $installationScriptLocation
4949
5050 Write-Debug " Done; Installation script location: $installationScriptLocation )"
Original file line number Diff line number Diff line change 11set -e
22
33GO_VERSION={0}
4+ ARCH={1}
45
56GO_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY /go
67GO_TOOLCACHE_VERSION_PATH=$GO_TOOLCACHE_PATH /$GO_VERSION
7- GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH /x64
8+ GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH /$ARCH
89
910echo " Check if Go hostedtoolcache folder exist..."
1011if [ ! -d $GO_TOOLCACHE_PATH ]; then
@@ -22,4 +23,4 @@ cp -R ./* $GO_TOOLCACHE_VERSION_ARCH_PATH
2223rm $GO_TOOLCACHE_VERSION_ARCH_PATH /setup.sh
2324
2425echo " Create complete file"
25- touch $GO_TOOLCACHE_VERSION_PATH /x64 .complete
26+ touch $GO_TOOLCACHE_VERSION_PATH /$ARCH .complete
You can’t perform that action at this time.
0 commit comments