Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Support go version 1.22 #37

Open
drriguz opened this issue Mar 4, 2024 · 0 comments
Open

[feat] Support go version 1.22 #37

drriguz opened this issue Mar 4, 2024 · 0 comments

Comments

@drriguz
Copy link

drriguz commented Mar 4, 2024

Is your feature request related to a problem? Please describe.
I'm trying go template with go version 1.22.0, however, func build failed:

===> BUILDING
Paketo Buildpack for Go Distribution 2.4.5
  Resolving Go version
    Candidate version sources (in priority order):
      <unknown> -> ""

    Selected Go version (using <unknown>): 1.20.14

  Reusing cached layer /layers/paketo-buildpacks_go-dist/go

> Knative Functions Go Buildpack
  Fetching framework dependencies
go: downloading github.com/cloudevents/sdk-go/v2 v2.15.1
go: downloading github.com/google/uuid v1.1.1
go: downloading go.uber.org/zap v1.10.0
go: downloading github.com/json-iterator/go v1.1.10
go: downloading github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742
go: downloading github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: downloading go.uber.org/multierr v1.1.0
go: downloading go.uber.org/atomic v1.4.0
go: downloading github.com/go-chi/chi/v5 v5.0.12
go: downloading github.com/go-chi/chi v1.5.5
go: added github.com/go-chi/chi/v5 v5.0.12
  Executing: go build -o /workspace/bin/faas /workspace/faas
function: cannot compile Go 1.22 code
ERROR: failed to build: exit status 1

Describe the solution you'd like
Accroding to release notes of go-buildpack , v1.10.16 Feb 14, 2024 should support go 1.22.0.

Describe alternatives you've considered

Additional context
I'm using the latest funcCLI (built directly from master) .

$ func version
v0.40.0-34-g7bf3e100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant