-
Notifications
You must be signed in to change notification settings - Fork 32
Description
When trying to install the packager using the instruction provided below, the process fails when trying to install the cenkalti/backoff go module. From what I can determine, the cenkalti/backoff module now requires Go 1.18, which has depreciated the use of 'go get' in favor of using 'go install'. I am not super familar with Go, so I am looking for some assistance in make this process work again, as we us this module to build some custom buildpacks for Cloud Foundry.
go get github.com/cloudfoundry/libbuildpack cd ~/go/src/github.com/cloudfoundry/libbuildpack && GO111MODULE=on go mod download cd packager/buildpack-packager && GO111MODULE=on go install
`# go get github.com/cloudfoundry/libbuildpack
go: downloading github.com/cloudfoundry/libbuildpack v0.0.0-20231211162543-86d10e150195
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.0
go: downloading github.com/Masterminds/semver v1.5.0
github.com/cenkalti/backoff/v4
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:10:26: syntax error: unexpected any, expecting ]
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:10:38: method has no receiver
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:16:53: syntax error: unexpected [ after top level declaration
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:17:16: method has no receiver
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:17:16: syntax error: unexpected (, expecting name or (
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:42:19: syntax error: unexpected [, expecting (
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:53:25: syntax error: unexpected [, expecting (
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:66:33: syntax error: unexpected [, expecting (
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:70:19: syntax error: unexpected [, expecting (
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:76:2: syntax error: non-declaration statement outside function body
pkg/mod/github.com/cenkalti/backoff/v4@v4.2.0/retry.go:76:2: too many errors
note: module requires Go 1.18`