Muokkaa

Jaa


GoTool@0 - Go tool installer v0 task

Use this task to find in the tools cache or download a specific version of Go and add it to the PATH.

Finds or downloads a specific version of Go in the tools cache and adds it to the PATH. Use this task to set the version of Go used in subsequent tasks.

Syntax

# Go tool installer v0
# Find in cache or download a specific version of Go and add it to the PATH.
- task: GoTool@0
  inputs:
    version: '1.10' # string. Required. Version. Default: 1.10.
  # Advanced
    #goPath: # string. GOPATH. 
    #goBin: # string. GOBIN.
# Go Tool Installer v0
# Finds or downloads a specific version of Go in the tools cache and adds it to the PATH. Use this to set the version of Go used in subsequent tasks.
- task: GoTool@0
  inputs:
    version: '1.10' # string. Required. Version. Default: 1.10.
  # Advanced
    #goPath: # string. GOPATH. 
    #goBin: # string. GOBIN.

Inputs

version - Version
string. Required. Default value: 1.10.

The Go version to download (if necessary) and use, for example 1.9.3.


goPath - GOPATH
string.

A custom value for the GOPATH environment variable.


goBin - GOBIN
string.

A custom value for the GOBIN environment variable.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Use this task to find or download a specific version of the Go tool into the tools cache and add it to the PATH. Use the task to change the version of Go Lang used in subsequent tasks.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: GO
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Tool