Skip to content

Commit 373868c

Browse files
committed
fix: issue intoduced with Go 1.24.1
Go enforsing `fmt.Sprintf("")` to not have plain string
1 parent 25c4b4b commit 373868c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ack_generate_info:
2-
build_date: "2025-03-28T15:21:59Z"
2+
build_date: "2025-03-31T18:41:05Z"
33
build_hash: 3722729cebe6d3c03c7e442655ef0846f91566a2
4-
go_version: go1.24.0
4+
go_version: go1.24.1
55
version: v0.43.2-7-g3722729
66
api_directory_checksum: bb3f7a9b3924fdbe63a4082a9134b3f1f653979b
77
api_version: v1alpha1

pkg/resource/vpc_peering_connection/sdk.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/hooks/vpc_peering_connection/sdk_update_pre_build_request.go.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
if delta.DifferentAt("Spec.AcceptRequest") {
2323
// Throw a Terminal Error, if the field was set to 'true' and is now set to 'false'
2424
if desired.ko.Spec.AcceptRequest == nil || !*desired.ko.Spec.AcceptRequest {
25-
msg := fmt.Sprintf("You cannot set AcceptRequest to false after setting it to true")
26-
return nil, ackerr.NewTerminalError(fmt.Errorf(msg))
25+
msg := "you cannot set AcceptRequest to false after setting it to true"
26+
return nil, ackerr.NewTerminalError(fmt.Errorf("%s", msg))
2727
2828
// Accept the VPC Peering Connection Request, if the field is set to 'true' and is still at status Pending Acceptance
2929
} else if *latest.ko.Status.Status.Code == "pending-acceptance" {

0 commit comments

Comments
 (0)