Details
-
Suggestion
-
Resolution: Fixed
Description
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}"