mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
13 lines
440 B
YAML
13 lines
440 B
YAML
|
# shared step for setting up go env
|
||
|
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/go?view=azure-devops#build-a-container-image
|
||
|
steps:
|
||
|
- script: |
|
||
|
mkdir -p '$(GOBIN)'
|
||
|
mkdir -p '$(GOPATH)/pkg'
|
||
|
mkdir -p '$(modulePath)'
|
||
|
shopt -s extglob
|
||
|
mv !(gopath) '$(modulePath)'
|
||
|
echo '##vso[task.prependpath]$(GOBIN)'
|
||
|
echo '##vso[task.prependpath]$(GOROOT)/bin'
|
||
|
displayName: 'Set up the Go workspace'
|