File: install-go-prerelease.yml

package info (click to toggle)
golang-github-azure-azure-sdk-for-go 68.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 556,256 kB
  • sloc: javascript: 196; sh: 96; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
parameters:
  - name: archive
    type: string

steps:
  - pwsh: |
      curl -sSL -o goarchive https://dl.google.com/go/${{parameters.archive}}
      tar -xzf goarchive -C "$(Build.SourcesDirectory)/.."

      Write-Host "Prepending Path with $(Build.SourcesDirectory)/../go/bin"

      # also prepend the path permanently to ensure access the newly installed tools
      Write-Host "##vso[task.prependpath]$(Build.SourcesDirectory)/../go/bin"
      go version
    displayName: "Install Go Pre-release Version"