Skip to content

Commit 3ce7f3c

Browse files
authored
Merge pull request #5 from form3tech-oss/bmcstdio-bump-go-github-utils
Bump 'go-github-utils'.
2 parents 5d6b6ed + 7a1b652 commit 3ce7f3c

File tree

3 files changed

+91
-4
lines changed

3 files changed

+91
-4
lines changed

githubfile/resource_file.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ func resourceFileCreateOrUpdate(s string, d *schema.ResourceData, m interface{})
104104
Username: c.githubUsername,
105105
Email: c.githubEmail,
106106
Changes: entries,
107-
RetryCount: 1,
108107
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-githubfile-%d", time.Now().UnixNano()),
109108
PullRequestBody: "",
109+
MaxRetries: 3,
110+
RetryBackoff: 5 * time.Second,
110111
}); err != nil {
111112
return fmt.Errorf("failed to create commit: %v", err)
112113
}
@@ -158,6 +159,8 @@ func resourceFileDelete(d *schema.ResourceData, m interface{}) error {
158159
BaseTreeOverride: github.String(""),
159160
PullRequestSourceBranchName: fmt.Sprintf("terraform-provider-githubfile-%d", time.Now().UnixNano()),
160161
PullRequestBody: "",
162+
MaxRetries: 3,
163+
RetryBackoff: 5 * time.Second,
161164
}); err != nil {
162165
return fmt.Errorf("failed to create commit: %v", err)
163166
}

go.mod

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,19 @@ go 1.12
55
replace git.apache.org/thrift.git => github.com/apache/thrift v0.12.0
66

77
require (
8-
github.com/form3tech-oss/go-github-utils v0.0.0-20190902102904-6021576c7116
8+
cloud.google.com/go v0.44.3 // indirect
9+
github.com/form3tech-oss/go-github-utils v0.0.0-20190904122548-38611ec99620
10+
github.com/google/go-cmp v0.3.1 // indirect
911
github.com/google/go-github/v28 v28.0.1
12+
github.com/hashicorp/golang-lru v0.5.3 // indirect
1013
github.com/hashicorp/terraform v0.12.7
14+
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472 // indirect
15+
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 // indirect
1116
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
17+
golang.org/x/sys v0.0.0-20190904005037-43c01164e931 // indirect
18+
google.golang.org/api v0.9.0 // indirect
19+
google.golang.org/appengine v1.6.2 // indirect
20+
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect
21+
google.golang.org/grpc v1.23.0 // indirect
22+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
1223
)

0 commit comments

Comments
 (0)