pulumi/pkg/codegen/go
Luke Hoban 46e2753d02
Require Go 1.20 for Go Programgen (#13729)
We added program generation that assumes availability of generics as
part of https://github.com/pulumi/pulumi/pull/13149, but didn't bump the
version of Go required in the generated go.mod. Currently, Pulumi is
supported on the supported versions of Go, which includes Go 1.20 and
1.21, so here we bump the Go version to the minimum currently supported
version, which also supports all of the code we generate today.

I was curious how this was not already failing tests, and it appears
it's because we delete the `go.mod` file in our tests and recreate it
with `go mod init`. I am unclear why we do that, but it feels like we
should not, exactly to avoid this sort of problem in the future and to
test the actual code we generate.


8696695cdb/pkg/codegen/go/test.go (L25-L28)

Fixes #13728.
2023-08-16 04:59:07 +00:00
..
gen_program_test all: gofmt -w -s 2023-01-10 19:03:24 -08:00
doc.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go Merge #13136 2023-07-07 21:33:39 +00:00
gen_crd2pulumi.go Merge #13136 2023-07-07 21:33:39 +00:00
gen_program.go Require Go 1.20 for Go Programgen (#13729) 2023-08-16 04:59:07 +00:00
gen_program_expression_test.go test(codegen/go): Fix broken TestLiteralExpression 2023-06-20 12:25:42 -07:00
gen_program_expressions.go Allow generating code for unknown invokes in non-strict mode 2023-07-10 15:05:18 +02:00
gen_program_json.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_optionals.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
gen_program_read_dir.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_splat.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_ternaries.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_test.go programgen(go): Handle conflicting names in imported packages 2023-07-25 12:49:37 -07:00
gen_program_utils.go [programgen/dotnet,go] Implement singleOrNone intrinsic 2023-06-11 16:23:33 -07:00
gen_spill.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_test.go Merge #13136 2023-07-07 21:33:39 +00:00
importer.go Add `modulePath` to go 2022-10-10 16:01:53 -07:00
test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
utilities.go pkg/codegen/go: Prefer contract.Assertf over contract.Assert 2023-02-13 16:27:39 -08:00
utilities_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00