GoogleCloudPlatform / security-response-automation

Take automated actions against threats and vulnerabilities.
Apache License 2.0
208 stars 52 forks source link

Error in Go Build #210

Open rvsharma66 opened 2 years ago

rvsharma66 commented 2 years ago

OS : Mac GO : 1.13 (Installed via Brew)

go version
go version go1.13.15 darwin/amd64 
╷
│ Error: Error waiting for Creating CloudFunctions Function: Error code 3, message: Build failed: # golang.org/x/net/http2
│ /layers/google.go.functions-framework/gopath/pkg/mod/golang.org/x/net@v0.0.0-20220225172249-27dd8689420f/http2/transport.go:417:45: undefined: os.ErrDeadlineExceeded
│ note: module requires Go 1.17; Error ID: 975560ac
│
│   with module.filter.google_cloudfunctions_function.filter,
│   on cloudfunctions/filter/main.tf line 15, in resource "google_cloudfunctions_function" "filter":
│   15: resource "google_cloudfunctions_function" "filter" {

I've also tried with go 1.17, but same error output.

tnguyencota commented 2 years ago

changing the go runtime to go116 in cloudfunctions/filter/main.tf will fix this issue