Skip to content

[feat] Support go version 1.22 #37

Open
@drriguz

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions