Skip to content

Go Tests [will] fail with Go 1.24 #573

@jlamillan

Description

@jlamillan

Go 1.24's go test added a vet check for non-constant format strings: https://go.dev/doc/go1.24#vet

This will cause tests to fail when Go 1.24 is used:

$ git diff
diff --git a/go.mod b/go.mod
index 2862dd470f..2f2e010e09 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/oracle/oci-go-sdk/v65
 
-go 1.13
+go 1.24

$ go version
go version go1.24.0 darwin/arm64
$ go test ./...
?   	github.com/oracle/oci-go-sdk/v65	[no test files]
# github.com/oracle/oci-go-sdk/v65/accessgovernancecp
accessgovernancecp/change_governance_instance_compartment_details.go:36:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/change_governance_instance_compartment_request_response.go:81:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/create_governance_instance_details.go:66:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/create_governance_instance_request_response.go:71:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/delete_governance_instance_request_response.go:78:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/get_governance_instance_configuration_request_response.go:64:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/get_governance_instance_request_response.go:64:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/governance_instance.go:81:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/governance_instance_collection.go:36:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/governance_instance_configuration.go:34:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/governance_instance_summary.go:78:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/list_governance_instances_request_response.go:91:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/sender_config.go:48:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/update_governance_instance_configuration_details.go:34:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/update_governance_instance_configuration_request_response.go:74:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/update_governance_instance_details.go:53:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/update_governance_instance_request_response.go:74:27: non-constant format string in call to fmt.Errorf
accessgovernancecp/update_sender_config.go:45:27: non-constant format string in call to fmt.Errorf
...
vnmonitoring/work_request_summary_collection.go:37:27: non-constant format string in call to fmt.Errorf
FAIL	github.com/oracle/oci-go-sdk/v65/vnmonitoring [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/vulnerabilityscanning [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/waa [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/waas [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/waf [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/workrequests [build failed]
FAIL	github.com/oracle/oci-go-sdk/v65/zpr [build failed]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions