From 66b3bbdb502b399f08c7bb8b93cc37661bf073d7 Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Thu, 5 Jan 2023 20:17:47 -0800 Subject: [PATCH] feat: update to GO 1.18 (#72) --- modules/key-distributor/files/function/go.mod | 27 ++++++++++++++++--- modules/key-distributor/main.tf | 2 +- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/modules/key-distributor/files/function/go.mod b/modules/key-distributor/files/function/go.mod index 429ba22..fb21b97 100644 --- a/modules/key-distributor/files/function/go.mod +++ b/modules/key-distributor/files/function/go.mod @@ -1,8 +1,27 @@ -module github.com/onetwopunch/terraform-google-gsa-encrypter/cfn/encrypter +module github.com/terraform-google-modules/terraform-google-service-accounts/modules/key-distributor/files/function -go 1.14 +go 1.18 require ( - golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de - google.golang.org/api v0.30.0 + golang.org/x/crypto v0.5.0 + google.golang.org/api v0.106.0 +) + +require ( + cloud.google.com/go/compute v1.15.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect + github.com/googleapis/gax-go/v2 v2.7.0 // indirect + go.opencensus.io v0.24.0 // indirect + golang.org/x/net v0.5.0 // indirect + golang.org/x/oauth2 v0.4.0 // indirect + golang.org/x/sys v0.4.0 // indirect + golang.org/x/text v0.6.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20230104163317-caabf589fcbf // indirect + google.golang.org/grpc v1.51.0 // indirect + google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/modules/key-distributor/main.tf b/modules/key-distributor/main.tf index 72f3784..b885545 100644 --- a/modules/key-distributor/main.tf +++ b/modules/key-distributor/main.tf @@ -77,7 +77,7 @@ resource "google_cloudfunctions_function" "function" { region = var.region name = var.function_name description = "Generates and encrypts a new Service Account key given a GPG public key" - runtime = "go113" + runtime = "go118" trigger_http = true service_account_email = google_service_account.distributor.email