File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class NixGoBuilder : GoBuilder {
44
44
$installationTemplateLocation = Join-Path - Path $this.InstallationTemplatesLocation - ChildPath $this.InstallationTemplateName
45
45
46
46
$installationTemplateContent = Get-Content - Path $installationTemplateLocation - Raw
47
- $installationTemplateContent = $installationTemplateContent -f $this.Version.ToString (3 )
47
+ $installationTemplateContent = $installationTemplateContent -f $this.Version.ToString (3 ), $this .Architecture
48
48
$installationTemplateContent | Out-File - FilePath $installationScriptLocation
49
49
50
50
Write-Debug " Done; Installation script location: $installationScriptLocation )"
Original file line number Diff line number Diff line change 1
1
set -e
2
2
3
3
GO_VERSION={0}
4
+ ARCH={1}
4
5
5
6
GO_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY /go
6
7
GO_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
8
9
9
10
echo " Check if Go hostedtoolcache folder exist..."
10
11
if [ ! -d $GO_TOOLCACHE_PATH ]; then
@@ -22,4 +23,4 @@ cp -R ./* $GO_TOOLCACHE_VERSION_ARCH_PATH
22
23
rm $GO_TOOLCACHE_VERSION_ARCH_PATH /setup.sh
23
24
24
25
echo " 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