Update go lang default to latest release v1.12

Issue #18407 resolved
Mohammad Syahrul staff created an issue

Currently, go lang default pipeline build is redirecting the user to use the old version which is deprecated. Please update to latest v1.12 and update the pipeline command:

Incorrect lines in pipeline script:

script: # Modify the commands below to build your repository.
- PACKAGE_PATH="\${GOPATH}/src/bitbucket.org/\${BITBUCKET_REPO_OWNER}/\${BITBUCKET_REPO_SLUG}"
- mkdir -pv "\${PACKAGE_PATH}"
- tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "\${PACKAGE_PATH}"
- cd "\${PACKAGE_PATH}"

Corrected script:

script: # Modify the commands below to build your repository.
- PACKAGE_PATH="${GOPATH}/src/bitbucket.org/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}"
- mkdir -pv "${PACKAGE_PATH}"
- tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
- cd "${PACKAGE_PATH}" 

Comments (1)

  1. Log in to comment