Skip to content

Commit 6769f8b

Browse files
authored
Merge pull request #787 from hashicorp/gh-copywrite-bump-go
github/copywrite: Align Go version with project & address linter failures
2 parents 6a91a75 + d3d6970 commit 6769f8b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Install Go
5757
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
5858
with:
59-
go-version: "1.23"
59+
go-version-file: go.mod
6060
- name: "copyright headers check"
6161
run: |
6262
make copyrightcheck

ext/tryfunc/tryfunc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ func try(args []cty.Value) (cty.Value, error) {
117117
buf.WriteString("no expression succeeded:\n")
118118
for _, diag := range diags {
119119
if diag.Subject != nil {
120-
buf.WriteString(fmt.Sprintf("- %s (at %s)\n %s\n", diag.Summary, diag.Subject, diag.Detail))
120+
fmt.Fprintf(&buf, "- %s (at %s)\n %s\n", diag.Summary, diag.Subject, diag.Detail)
121121
} else {
122-
buf.WriteString(fmt.Sprintf("- %s\n %s\n", diag.Summary, diag.Detail))
122+
fmt.Fprintf(&buf, "- %s\n %s\n", diag.Summary, diag.Detail)
123123
}
124124
}
125125
buf.WriteString("\nAt least one expression must produce a successful result")

ext/typeexpr/public.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TypeString(ty cty.Type) string {
109109
// type that has weird attribute names.
110110
// Using Go-style quoting here isn't perfect, since it doesn't
111111
// exactly match HCL syntax, but it's fine for an edge-case.
112-
buf.WriteString(fmt.Sprintf("%q", name))
112+
fmt.Fprintf(&buf, "%q", name)
113113
} else {
114114
buf.WriteString(name)
115115
}

0 commit comments

Comments
 (0)