Skip to content

Commit

Permalink
Fix go vet ./...
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Dec 11, 2024
1 parent 720b9e2 commit ff60fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions pkg/vendored/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,13 @@ func vendorOpenTOFU(version string) {
transforms: transforms,
},
{
src: "internal/addrs/checkable.go",
dest: "addrs/checkable.go",
transforms: transforms,
src: "internal/addrs/checkable.go",
dest: "addrs/checkable.go",
transforms: append(transforms, func(s string) string {
code := `fmt.Sprintf("unsupported CheckableKind %s", kind)`
repl := `fmt.Sprintf("unsupported CheckableKind %v", kind)`
return strings.ReplaceAll(s, code, repl)
}),
},
{
src: "internal/addrs/check.go",
Expand Down
2 changes: 1 addition & 1 deletion pkg/vendored/opentofu/addrs/checkable.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@ func ParseCheckableStr(kind CheckableKind, src string) (Checkable, tfdiags.Diagn
return InputVariable{Name: name}.Absolute(path), diags

default:
panic(fmt.Sprintf("unsupported CheckableKind %s", kind))
panic(fmt.Sprintf("unsupported CheckableKind %v", kind))
}
}

0 comments on commit ff60fb9

Please sign in to comment.