Skip to content

Commit

Permalink
Update to Go 1.17.4 and remove timeout in resources.Get
Browse files Browse the repository at this point in the history
Fixes #9265
  • Loading branch information
bep committed Dec 9, 2021
1 parent 34a9629 commit 965a6cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
@@ -1,6 +1,6 @@
defaults: &defaults
docker:
- image: bepsays/ci-goreleaser:1.17.2
- image: bepsays/ci-goreleaser:1.17.4
environment:
CGO_ENABLED: "0"

Expand Down
8 changes: 0 additions & 8 deletions resources/resource_factories/create/create.go
Expand Up @@ -18,7 +18,6 @@ package create
import (
"bufio"
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -182,13 +181,6 @@ func (c *Client) FromRemote(uri string, options map[string]interface{}) (resourc
addUserProvidedHeaders(headers, req)
}

// Workaround for https://github.com/golang/go/issues/49366
// This is the entire lifetime of the request.
ctx, cancel := context.WithTimeout(req.Context(), 30*time.Second)
defer cancel()

req = req.WithContext(ctx)

res, err := c.httpClient.Do(req)
if err != nil {
return nil, err
Expand Down

0 comments on commit 965a6cb

Please sign in to comment.