diff --git a/advisorynotifications/go.mod b/advisorynotifications/go.mod index a86354250d31..d757502881d9 100644 --- a/advisorynotifications/go.mod +++ b/advisorynotifications/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/advisorynotifications -go 1.20 +go 1.19 require ( github.com/googleapis/gax-go/v2 v2.11.0 diff --git a/ai/go.mod b/ai/go.mod index d87c856bf5db..7f973b133a31 100644 --- a/ai/go.mod +++ b/ai/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/ai -go 1.20 +go 1.19 require ( github.com/googleapis/gax-go/v2 v2.12.0 diff --git a/alloydb/go.mod b/alloydb/go.mod index 00257d0178bf..fdb7e861436f 100644 --- a/alloydb/go.mod +++ b/alloydb/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/alloydb -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.0 diff --git a/commerce/go.mod b/commerce/go.mod index 4a5d85b2b1fa..d21f5816d5da 100644 --- a/commerce/go.mod +++ b/commerce/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/commerce -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.1 diff --git a/confidentialcomputing/go.mod b/confidentialcomputing/go.mod index 766c5277f49c..3da8d2cb90da 100644 --- a/confidentialcomputing/go.mod +++ b/confidentialcomputing/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/confidentialcomputing -go 1.20 +go 1.19 require ( github.com/googleapis/gax-go/v2 v2.11.0 diff --git a/internal/gapicgen/go.mod b/internal/gapicgen/go.mod index 7b822be8d370..4a1806868b3c 100644 --- a/internal/gapicgen/go.mod +++ b/internal/gapicgen/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/internal/gapicgen -go 1.20 +go 1.19 require ( github.com/go-git/go-git/v5 v5.7.0 diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 0ff56ded59b0..06f05de353c9 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -3,144 +3,147 @@ module cloud.google.com/go/internal/generated go 1.19 require ( - cloud.google.com/go v0.110.2 - cloud.google.com/go/accessapproval v1.6.0 - cloud.google.com/go/accesscontextmanager v1.8.0 + cloud.google.com/go v0.110.4 + cloud.google.com/go/accessapproval v1.7.1 + cloud.google.com/go/accesscontextmanager v1.8.1 cloud.google.com/go/advisorynotifications v0.0.0-00010101000000-000000000000 - cloud.google.com/go/aiplatform v1.37.0 + cloud.google.com/go/aiplatform v1.45.0 cloud.google.com/go/alloydb v0.0.0-00010101000000-000000000000 - cloud.google.com/go/analytics v0.19.0 - cloud.google.com/go/apigateway v1.5.0 - cloud.google.com/go/apigeeconnect v1.5.0 - cloud.google.com/go/apigeeregistry v0.6.0 + cloud.google.com/go/analytics v0.21.2 + cloud.google.com/go/apigateway v1.6.1 + cloud.google.com/go/apigeeconnect v1.6.1 + cloud.google.com/go/apigeeregistry v0.7.1 cloud.google.com/go/apikeys v0.6.0 - cloud.google.com/go/appengine v1.7.1 - cloud.google.com/go/area120 v0.7.1 - cloud.google.com/go/artifactregistry v1.13.0 - cloud.google.com/go/asset v1.13.0 - cloud.google.com/go/assuredworkloads v1.10.0 - cloud.google.com/go/automl v1.12.0 - cloud.google.com/go/baremetalsolution v0.5.0 - cloud.google.com/go/batch v0.7.0 - cloud.google.com/go/beyondcorp v0.5.0 - cloud.google.com/go/bigquery v1.50.0 - cloud.google.com/go/billing v1.13.0 - cloud.google.com/go/binaryauthorization v1.5.0 - cloud.google.com/go/certificatemanager v1.6.0 - cloud.google.com/go/channel v1.12.0 - cloud.google.com/go/cloudbuild v1.9.0 - cloud.google.com/go/clouddms v1.5.0 - cloud.google.com/go/cloudtasks v1.10.0 - cloud.google.com/go/compute v1.20.0 + cloud.google.com/go/appengine v1.8.1 + cloud.google.com/go/area120 v0.8.1 + cloud.google.com/go/artifactregistry v1.14.1 + cloud.google.com/go/asset v1.14.1 + cloud.google.com/go/assuredworkloads v1.11.1 + cloud.google.com/go/automl v1.13.1 + cloud.google.com/go/baremetalsolution v1.1.1 + cloud.google.com/go/batch v1.3.1 + cloud.google.com/go/beyondcorp v1.0.0 + cloud.google.com/go/bigquery v1.52.0 + cloud.google.com/go/billing v1.16.0 + cloud.google.com/go/binaryauthorization v1.6.1 + cloud.google.com/go/certificatemanager v1.7.1 + cloud.google.com/go/channel v1.16.0 + cloud.google.com/go/cloudbuild v1.10.1 + cloud.google.com/go/clouddms v1.6.1 + cloud.google.com/go/cloudtasks v1.11.1 + cloud.google.com/go/compute v1.20.1 cloud.google.com/go/confidentialcomputing v0.1.0 - cloud.google.com/go/contactcenterinsights v1.6.0 - cloud.google.com/go/container v1.15.0 - cloud.google.com/go/containeranalysis v0.9.0 - cloud.google.com/go/datacatalog v1.14.0 - cloud.google.com/go/dataflow v0.8.0 - cloud.google.com/go/dataform v0.7.0 - cloud.google.com/go/datafusion v1.6.0 - cloud.google.com/go/datalabeling v0.7.0 - cloud.google.com/go/dataplex v1.6.0 + cloud.google.com/go/contactcenterinsights v1.9.1 + cloud.google.com/go/container v1.22.1 + cloud.google.com/go/containeranalysis v0.10.1 + cloud.google.com/go/datacatalog v1.14.1 + cloud.google.com/go/dataflow v0.9.1 + cloud.google.com/go/dataform v0.8.1 + cloud.google.com/go/datafusion v1.7.1 + cloud.google.com/go/datalabeling v0.8.1 + cloud.google.com/go/dataplex v1.8.1 cloud.google.com/go/dataproc/v2 v2.0.0 - cloud.google.com/go/dataqna v0.7.0 - cloud.google.com/go/datastore v1.11.0 - cloud.google.com/go/datastream v1.7.0 - cloud.google.com/go/deploy v1.8.0 - cloud.google.com/go/dialogflow v1.32.0 + cloud.google.com/go/dataqna v0.8.1 + cloud.google.com/go/datastore v1.12.1 + cloud.google.com/go/datastream v1.9.1 + cloud.google.com/go/deploy v1.11.0 + cloud.google.com/go/dialogflow v1.38.0 cloud.google.com/go/discoveryengine v0.0.0-00010101000000-000000000000 - cloud.google.com/go/dlp v1.9.0 - cloud.google.com/go/documentai v1.18.0 - cloud.google.com/go/domains v0.8.0 - cloud.google.com/go/edgecontainer v1.0.0 + cloud.google.com/go/dlp v1.10.1 + cloud.google.com/go/documentai v1.20.0 + cloud.google.com/go/domains v0.9.1 + cloud.google.com/go/edgecontainer v1.1.1 cloud.google.com/go/errorreporting v0.3.0 - cloud.google.com/go/essentialcontacts v1.5.0 - cloud.google.com/go/eventarc v1.11.0 - cloud.google.com/go/filestore v1.6.0 - cloud.google.com/go/firestore v1.9.0 - cloud.google.com/go/functions v1.13.0 - cloud.google.com/go/gkebackup v0.4.0 - cloud.google.com/go/gkeconnect v0.7.0 - cloud.google.com/go/gkehub v0.12.0 - cloud.google.com/go/gkemulticloud v0.5.0 - cloud.google.com/go/gsuiteaddons v1.5.0 - cloud.google.com/go/iam v1.1.0 - cloud.google.com/go/iap v1.7.1 - cloud.google.com/go/ids v1.3.0 - cloud.google.com/go/iot v1.6.0 - cloud.google.com/go/kms v1.11.0 - cloud.google.com/go/language v1.9.0 - cloud.google.com/go/lifesciences v0.8.0 + cloud.google.com/go/essentialcontacts v1.6.2 + cloud.google.com/go/eventarc v1.12.1 + cloud.google.com/go/filestore v1.7.1 + cloud.google.com/go/firestore v1.11.0 + cloud.google.com/go/functions v1.15.1 + cloud.google.com/go/gkebackup v1.3.0 + cloud.google.com/go/gkeconnect v0.8.1 + cloud.google.com/go/gkehub v0.14.1 + cloud.google.com/go/gkemulticloud v0.6.1 + cloud.google.com/go/gsuiteaddons v1.6.1 + cloud.google.com/go/iam v1.1.1 + cloud.google.com/go/iap v1.8.1 + cloud.google.com/go/ids v1.4.1 + cloud.google.com/go/iot v1.7.1 + cloud.google.com/go/kms v1.12.1 + cloud.google.com/go/language v1.10.1 + cloud.google.com/go/lifesciences v0.9.1 cloud.google.com/go/logging v1.7.0 - cloud.google.com/go/longrunning v0.5.0 - cloud.google.com/go/managedidentities v1.5.0 - cloud.google.com/go/maps v0.7.0 - cloud.google.com/go/mediatranslation v0.7.0 - cloud.google.com/go/memcache v1.9.0 - cloud.google.com/go/metastore v1.10.0 - cloud.google.com/go/monitoring v1.13.0 - cloud.google.com/go/networkconnectivity v1.11.0 - cloud.google.com/go/networkmanagement v1.6.0 - cloud.google.com/go/networksecurity v0.8.0 - cloud.google.com/go/notebooks v1.8.0 - cloud.google.com/go/optimization v1.3.1 - cloud.google.com/go/orchestration v1.6.0 - cloud.google.com/go/orgpolicy v1.11.0 - cloud.google.com/go/osconfig v1.12.0 - cloud.google.com/go/oslogin v1.9.0 - cloud.google.com/go/phishingprotection v0.7.0 - cloud.google.com/go/policytroubleshooter v1.6.0 - cloud.google.com/go/privatecatalog v0.8.0 - cloud.google.com/go/pubsub v1.31.0 - cloud.google.com/go/pubsublite v1.7.0 - cloud.google.com/go/recaptchaenterprise/v2 v2.7.1 - cloud.google.com/go/recommendationengine v0.7.0 - cloud.google.com/go/recommender v1.9.0 - cloud.google.com/go/redis v1.11.0 - cloud.google.com/go/resourcemanager v1.7.0 - cloud.google.com/go/resourcesettings v1.5.0 - cloud.google.com/go/retail v1.12.0 - cloud.google.com/go/run v0.9.0 - cloud.google.com/go/scheduler v1.9.0 - cloud.google.com/go/secretmanager v1.10.0 - cloud.google.com/go/security v1.13.0 - cloud.google.com/go/securitycenter v1.19.0 + cloud.google.com/go/longrunning v0.5.1 + cloud.google.com/go/managedidentities v1.6.1 + cloud.google.com/go/maps v1.3.0 + cloud.google.com/go/mediatranslation v0.8.1 + cloud.google.com/go/memcache v1.10.1 + cloud.google.com/go/metastore v1.11.1 + cloud.google.com/go/monitoring v1.15.1 + cloud.google.com/go/networkconnectivity v1.12.1 + cloud.google.com/go/networkmanagement v1.8.0 + cloud.google.com/go/networksecurity v0.9.1 + cloud.google.com/go/notebooks v1.9.1 + cloud.google.com/go/optimization v1.4.1 + cloud.google.com/go/orchestration v1.8.1 + cloud.google.com/go/orgpolicy v1.11.1 + cloud.google.com/go/osconfig v1.12.1 + cloud.google.com/go/oslogin v1.10.1 + cloud.google.com/go/phishingprotection v0.8.1 + cloud.google.com/go/policytroubleshooter v1.7.1 + cloud.google.com/go/privatecatalog v0.9.1 + cloud.google.com/go/pubsub v1.32.0 + cloud.google.com/go/pubsublite v1.8.1 + cloud.google.com/go/recaptchaenterprise/v2 v2.7.2 + cloud.google.com/go/recommendationengine v0.8.1 + cloud.google.com/go/recommender v1.10.1 + cloud.google.com/go/redis v1.13.1 + cloud.google.com/go/resourcemanager v1.9.1 + cloud.google.com/go/resourcesettings v1.6.1 + cloud.google.com/go/retail v1.14.1 + cloud.google.com/go/run v1.2.0 + cloud.google.com/go/scheduler v1.10.1 + cloud.google.com/go/secretmanager v1.11.1 + cloud.google.com/go/security v1.15.1 + cloud.google.com/go/securitycenter v1.23.0 cloud.google.com/go/servicecontrol v1.11.1 - cloud.google.com/go/servicedirectory v1.9.0 + cloud.google.com/go/servicedirectory v1.10.1 cloud.google.com/go/servicemanagement v1.8.0 cloud.google.com/go/serviceusage v1.6.0 - cloud.google.com/go/shell v1.6.0 - cloud.google.com/go/spanner v1.45.0 - cloud.google.com/go/speech v1.15.0 + cloud.google.com/go/shell v1.7.1 + cloud.google.com/go/spanner v1.47.0 + cloud.google.com/go/speech v1.17.1 cloud.google.com/go/storageinsights v0.0.0 - cloud.google.com/go/storagetransfer v1.8.0 + cloud.google.com/go/storagetransfer v1.10.0 cloud.google.com/go/support v0.0.0 - cloud.google.com/go/talent v1.5.0 - cloud.google.com/go/texttospeech v1.6.0 - cloud.google.com/go/tpu v1.5.0 - cloud.google.com/go/trace v1.9.0 - cloud.google.com/go/translate v1.7.0 - cloud.google.com/go/video v1.15.0 - cloud.google.com/go/videointelligence v1.10.0 - cloud.google.com/go/vision/v2 v2.7.1 - cloud.google.com/go/vmmigration v1.6.0 - cloud.google.com/go/vmwareengine v0.3.0 - cloud.google.com/go/vpcaccess v1.6.0 - cloud.google.com/go/webrisk v1.8.0 - cloud.google.com/go/websecurityscanner v1.5.0 - cloud.google.com/go/workflows v1.10.0 + cloud.google.com/go/talent v1.6.2 + cloud.google.com/go/texttospeech v1.7.1 + cloud.google.com/go/tpu v1.6.1 + cloud.google.com/go/trace v1.10.1 + cloud.google.com/go/translate v1.8.1 + cloud.google.com/go/video v1.17.1 + cloud.google.com/go/videointelligence v1.11.1 + cloud.google.com/go/vision/v2 v2.7.2 + cloud.google.com/go/vmmigration v1.7.1 + cloud.google.com/go/vmwareengine v0.4.1 + cloud.google.com/go/vpcaccess v1.7.1 + cloud.google.com/go/webrisk v1.9.1 + cloud.google.com/go/websecurityscanner v1.6.1 + cloud.google.com/go/workflows v1.11.1 cloud.google.com/go/workstations v0.0.0-00010101000000-000000000000 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - google.golang.org/api v0.130.0 - google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 + google.golang.org/api v0.134.0 + google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e ) require ( cloud.google.com/go/ai v0.0.0-00010101000000-000000000000 + cloud.google.com/go/commerce v0.0.0-00010101000000-000000000000 cloud.google.com/go/migrationcenter v0.0.0-00010101000000-000000000000 + cloud.google.com/go/netapp v0.0.0-00010101000000-000000000000 + cloud.google.com/go/policysimulator v0.0.0-00010101000000-000000000000 cloud.google.com/go/rapidmigrationassessment v0.0.0-00010101000000-000000000000 cloud.google.com/go/recaptchaenterprise v1.3.1 - google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 + google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e ) require ( @@ -154,12 +157,13 @@ require ( go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.11.0 // indirect golang.org/x/net v0.12.0 // indirect - golang.org/x/oauth2 v0.9.0 // indirect + golang.org/x/oauth2 v0.10.0 // indirect + golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.10.0 // indirect golang.org/x/text v0.11.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529 // indirect - google.golang.org/grpc v1.56.2 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230726155614-23370e0ffb3e // indirect + google.golang.org/grpc v1.57.0 // indirect google.golang.org/protobuf v1.31.0 // indirect ) diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index cda1d56273c9..ef39519dcace 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -7,6 +7,7 @@ cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2 cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= +cloud.google.com/go/gaming v1.10.1/go.mod h1:XQQvtfP8Rb9Rxnxm5wFVpAp9zCQkJi2bLIb7iHGwB3s= cloud.google.com/go/recaptchaenterprise v1.3.1 h1:u6EznTGzIdsyOsvm+Xkw0aSuKFXQlyjGE9a4exk6iNQ= cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -46,6 +47,7 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -63,10 +65,12 @@ github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go. github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34= github.com/envoyproxy/go-control-plane v0.11.0/go.mod h1:VnHyVMpzcLvCFt9yUz1UnCwHLhwx1WguiVDV7pTG/tI= +github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -124,6 +128,7 @@ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8 github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-pkcs11 v0.2.0/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= @@ -133,6 +138,7 @@ github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/enterprise-certificate-proxy v0.2.5 h1:UR4rDjcgpgEnqpIEvkiqTYKBCKLNmlge2eVjoZfySzM= github.com/googleapis/enterprise-certificate-proxy v0.2.5/go.mod h1:RxW0N9901Cko1VOCW3SXCpWP+mlIEkk2tP7jnHy9a3w= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= @@ -215,6 +221,7 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= @@ -240,6 +247,7 @@ golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -316,6 +324,7 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= @@ -338,9 +347,10 @@ golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= +golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= -golang.org/x/oauth2 v0.9.0 h1:BPpt2kU7oMRq3kCHAA1tbSEshXRw1LpG2ztgDwrzuAs= -golang.org/x/oauth2 v0.9.0/go.mod h1:qYgFZaFiu6Wg24azG8bdV52QJXJGbZzIIsRCdVKzbLw= +golang.org/x/oauth2 v0.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= +golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -355,6 +365,7 @@ golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -395,7 +406,9 @@ golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -406,7 +419,10 @@ golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= +golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -421,6 +437,7 @@ golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -480,8 +497,10 @@ google.golang.org/api v0.108.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/ google.golang.org/api v0.111.0/go.mod h1:qtFHvU9mhgTJegR31csQ+rwxyUTHOKFqCKWp1J0fdw0= google.golang.org/api v0.124.0/go.mod h1:xu2HQurE5gi/3t1aFCvhPD781p0a3p11sdunTJ2BlP4= google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= -google.golang.org/api v0.130.0 h1:A50ujooa1h9iizvfzA4rrJr2B7uRmWexwbekQ2+5FPQ= -google.golang.org/api v0.130.0/go.mod h1:J/LCJMYSDFvAVREGCbrESb53n4++NMBDetSHGL5I5RY= +google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= +google.golang.org/api v0.132.0/go.mod h1:AeTBC6GpJnJSRJjktDcPX0QwtS8pGYZOV6MSuSCusw0= +google.golang.org/api v0.134.0 h1:ktL4Goua+UBgoP1eL1/60LwZJqa1sIzkLmvoR3hR6Gw= +google.golang.org/api v0.134.0/go.mod h1:sjRL3UnjTx5UqNQS9EWr9N8p7xbHpy1k0XGRLCf3Spk= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -529,21 +548,28 @@ google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVix google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= google.golang.org/genproto v0.0.0-20230525234025-438c736192d0/go.mod h1:9ExIQyXL5hZrHzQceCwuSYwZZ5QZBazOcprJ5rgs3lY= google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 h1:9JucMWR7sPvCxUFd6UsOUNmA5kCcWOfORaT3tpAsKQs= google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= +google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e h1:xIXmWJ303kJCuogpj0bHq+dcjcZHU+XFyc1I0Yl9cRg= +google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:0ggbjUrZYpy1q+ANUS30SEoGZ53cdfwtbuG7Ptgy108= google.golang.org/genproto/googleapis/api v0.0.0-20230525234020-1aefcd67740a/go.mod h1:ts19tUU+Z0ZShN1y3aPyq2+O3d5FUNNgT6FtOzmrNn8= google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 h1:XVeBY8d/FaK4848myy41HBqnDwvxeV3zMZhwN1TvAMU= +google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ= +google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e h1:z3vDksarJxsAKM5dmEGv0GHwE2hKJ096wZra71Vs4sw= +google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20230711160842-782d3b101e98/go.mod h1:3QoBVwTHkXbY1oRGzlhwhOykfcATQN43LJ6iT8Wy8kE= google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a/go.mod h1:xURIpW9ES5+/GZhnV6beoEtxQrnkRGIfP5VQG2tCBLc= google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529 h1:DEH99RbiLZhMxrpEJCZ0A+wdTe0EOgou/poSLx9vWf4= google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230726155614-23370e0ffb3e h1:S83+ibolgyZ0bqz7KEsUOPErxcv4VzlszxY+31OfB/E= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= @@ -568,11 +594,14 @@ google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCD google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= google.golang.org/grpc v1.52.0/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= +google.golang.org/grpc v1.52.3/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI= +google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= +google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/internal/postprocessor/execv/gocmd/gocmd.go b/internal/postprocessor/execv/gocmd/gocmd.go index cbda042eab96..8cd9bbf3a3c3 100644 --- a/internal/postprocessor/execv/gocmd/gocmd.go +++ b/internal/postprocessor/execv/gocmd/gocmd.go @@ -34,10 +34,16 @@ var ( ) // ModInit creates a new module in the specified directory. -func ModInit(dir, importPath string) error { +func ModInit(dir, importPath, goVersion string) error { c := execv.Command("go", "mod", "init", importPath) c.Dir = dir - return c.Run() + if err := c.Run(); err != nil { + return err + } + + c2 := execv.Command("go", "get", fmt.Sprintf("go@%s", goVersion)) + c2.Dir = dir + return c2.Run() } // ModTidy tidies go.mod file in the specified directory. diff --git a/internal/postprocessor/go.mod b/internal/postprocessor/go.mod index 692be798038d..56ecbaf4cef4 100644 --- a/internal/postprocessor/go.mod +++ b/internal/postprocessor/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/internal/postprocessor -go 1.20 +go 1.19 require ( github.com/go-git/go-git/v5 v5.7.0 diff --git a/internal/postprocessor/main.go b/internal/postprocessor/main.go index 07874c7f81b0..97a9fbdaaa62 100644 --- a/internal/postprocessor/main.go +++ b/internal/postprocessor/main.go @@ -41,6 +41,11 @@ const ( beginNestedCommitDelimiter = "BEGIN_NESTED_COMMIT" endNestedCommitDelimiter = "END_NESTED_COMMIT" copyTagSubstring = "Copy-Tag:" + + // This is the default Go version that will be generated into new go.mod + // files. It should be updated every time we drop support for old Go + // versions. + defaultGoModuleVersion = "1.19" ) var ( @@ -256,7 +261,7 @@ func (p *postProcessor) generateModule(modPath, importPath string) error { return err } log.Printf("Creating %s/go.mod", modPath) - if err := gocmd.ModInit(modPath, importPath); err != nil { + if err := gocmd.ModInit(modPath, importPath, defaultGoModuleVersion); err != nil { return err } log.Print("Updating workspace") diff --git a/migrationcenter/go.mod b/migrationcenter/go.mod index 5fc2c46be0ef..1db635fac37b 100644 --- a/migrationcenter/go.mod +++ b/migrationcenter/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/migrationcenter -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.0 diff --git a/netapp/go.mod b/netapp/go.mod index 3dc581c398bc..632df7c23989 100644 --- a/netapp/go.mod +++ b/netapp/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/netapp -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.1 diff --git a/policysimulator/go.mod b/policysimulator/go.mod index a77c3bad3768..ddffe04893ac 100644 --- a/policysimulator/go.mod +++ b/policysimulator/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/policysimulator -go 1.20 +go 1.19 require ( cloud.google.com/go/iam v1.1.1 diff --git a/rapidmigrationassessment/go.mod b/rapidmigrationassessment/go.mod index 96c1d15e60e5..7962755752bc 100644 --- a/rapidmigrationassessment/go.mod +++ b/rapidmigrationassessment/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/rapidmigrationassessment -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.0 diff --git a/storageinsights/go.mod b/storageinsights/go.mod index 798aeb43863c..d4b05d378e0b 100644 --- a/storageinsights/go.mod +++ b/storageinsights/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/storageinsights -go 1.20 +go 1.19 require ( cloud.google.com/go/longrunning v0.5.0 diff --git a/support/go.mod b/support/go.mod index b9fd7d4b2f79..57f422f6d3ff 100644 --- a/support/go.mod +++ b/support/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/support -go 1.20 +go 1.19 require ( github.com/googleapis/gax-go/v2 v2.11.0 diff --git a/workstations/go.mod b/workstations/go.mod index 495e87863d42..e2b31844559c 100644 --- a/workstations/go.mod +++ b/workstations/go.mod @@ -1,6 +1,6 @@ module cloud.google.com/go/workstations -go 1.20 +go 1.19 require ( cloud.google.com/go/iam v1.1.0