diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index b93422b7a3..503410169b 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -23,7 +23,7 @@ package v1beta1 import ( "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" - "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors" + errors "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors" corev1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1" ) diff --git a/hack/tools/Makefile b/hack/tools/Makefile index 1268d17a32..3223f02d9e 100644 --- a/hack/tools/Makefile +++ b/hack/tools/Makefile @@ -15,7 +15,7 @@ ROOT_DIR_RELATIVE := ../.. include $(ROOT_DIR_RELATIVE)/common.mk -GOLANGCI_LINT_VERSION ?= v2.6.2 +GOLANGCI_LINT_VERSION ?= v2.7.2 # GOTESTSUM version without the leading 'v' GOTESTSUM_VERSION ?= 1.12.0 diff --git a/pkg/utils/errors/errors.go b/pkg/utils/errors/errors.go index 5c7b18d0cb..aed3639d64 100644 --- a/pkg/utils/errors/errors.go +++ b/pkg/utils/errors/errors.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package errors +package capoerrors import ( "errors" diff --git a/pkg/utils/errors/terminal.go b/pkg/utils/errors/terminal.go index 4e88356d93..52f5b20bb9 100644 --- a/pkg/utils/errors/terminal.go +++ b/pkg/utils/errors/terminal.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package errors +package capoerrors import ( goerrors "errors" diff --git a/test/e2e/shared/cluster.go b/test/e2e/shared/cluster.go index 388920ffb5..8c9b0c9d4e 100644 --- a/test/e2e/shared/cluster.go +++ b/test/e2e/shared/cluster.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/common.go b/test/e2e/shared/common.go index b05b89c92e..42e7a43c10 100644 --- a/test/e2e/shared/common.go +++ b/test/e2e/shared/common.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/context.go b/test/e2e/shared/context.go index d626b6447c..113726cc78 100644 --- a/test/e2e/shared/context.go +++ b/test/e2e/shared/context.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/defaults.go b/test/e2e/shared/defaults.go index 2aea6c9077..37ff614633 100644 --- a/test/e2e/shared/defaults.go +++ b/test/e2e/shared/defaults.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "errors" diff --git a/test/e2e/shared/exec.go b/test/e2e/shared/exec.go index 371e1ff5e2..158fcd0134 100644 --- a/test/e2e/shared/exec.go +++ b/test/e2e/shared/exec.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "bytes" diff --git a/test/e2e/shared/exec_test.go b/test/e2e/shared/exec_test.go index 2eb77319a5..1768b0de25 100644 --- a/test/e2e/shared/exec_test.go +++ b/test/e2e/shared/exec_test.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/images.go b/test/e2e/shared/images.go index 403be1ce9f..b5ffe02754 100644 --- a/test/e2e/shared/images.go +++ b/test/e2e/shared/images.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/openstack.go b/test/e2e/shared/openstack.go index c79add2698..5ceecd1d69 100644 --- a/test/e2e/shared/openstack.go +++ b/test/e2e/shared/openstack.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "bytes" diff --git a/test/e2e/shared/openstack_test.go b/test/e2e/shared/openstack_test.go index 340e10f310..2df894679c 100644 --- a/test/e2e/shared/openstack_test.go +++ b/test/e2e/shared/openstack_test.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/shared/suite.go b/test/e2e/shared/suite.go index 54a0d2f489..2800273e7f 100644 --- a/test/e2e/shared/suite.go +++ b/test/e2e/shared/suite.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package shared +package e2eshared import ( "context" diff --git a/test/e2e/suites/conformance/conformance_suite_test.go b/test/e2e/suites/conformance/conformance_suite_test.go index b1ddac6763..216806db02 100644 --- a/test/e2e/suites/conformance/conformance_suite_test.go +++ b/test/e2e/suites/conformance/conformance_suite_test.go @@ -26,7 +26,7 @@ import ( . "github.com/onsi/gomega" ctrl "sigs.k8s.io/controller-runtime" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var e2eCtx *shared.E2EContext diff --git a/test/e2e/suites/conformance/conformance_test.go b/test/e2e/suites/conformance/conformance_test.go index f0cf00c85d..a2f3300bbb 100644 --- a/test/e2e/suites/conformance/conformance_test.go +++ b/test/e2e/suites/conformance/conformance_test.go @@ -33,7 +33,7 @@ import ( "sigs.k8s.io/cluster-api/test/framework/kubernetesversions" "sigs.k8s.io/cluster-api/test/framework/kubetest" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var _ = Describe("conformance tests", func() { diff --git a/test/e2e/suites/e2e/clusterctl_upgrade_test.go b/test/e2e/suites/e2e/clusterctl_upgrade_test.go index a3c98c44dc..266ae1e1b2 100644 --- a/test/e2e/suites/e2e/clusterctl_upgrade_test.go +++ b/test/e2e/suites/e2e/clusterctl_upgrade_test.go @@ -26,7 +26,7 @@ import ( capi_e2e "sigs.k8s.io/cluster-api/test/e2e" "sigs.k8s.io/cluster-api/test/framework/clusterctl" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var ( diff --git a/test/e2e/suites/e2e/e2e_suite_test.go b/test/e2e/suites/e2e/e2e_suite_test.go index ebb1396dbc..b93db77e39 100644 --- a/test/e2e/suites/e2e/e2e_suite_test.go +++ b/test/e2e/suites/e2e/e2e_suite_test.go @@ -34,7 +34,7 @@ import ( . "github.com/onsi/gomega" ctrl "sigs.k8s.io/controller-runtime" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var ( diff --git a/test/e2e/suites/e2e/e2e_test.go b/test/e2e/suites/e2e/e2e_test.go index ac816e4a68..f19a543720 100644 --- a/test/e2e/suites/e2e/e2e_test.go +++ b/test/e2e/suites/e2e/e2e_test.go @@ -60,7 +60,7 @@ import ( infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1" "sigs.k8s.io/cluster-api-provider-openstack/internal/util/ssa" "sigs.k8s.io/cluster-api-provider-openstack/pkg/generated/applyconfiguration/api/v1beta1" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) const specName = "e2e" diff --git a/test/e2e/suites/e2e/remediations_test.go b/test/e2e/suites/e2e/remediations_test.go index ed2226c2f9..c4c023143e 100644 --- a/test/e2e/suites/e2e/remediations_test.go +++ b/test/e2e/suites/e2e/remediations_test.go @@ -25,7 +25,7 @@ import ( "k8s.io/utils/ptr" capi_e2e "sigs.k8s.io/cluster-api/test/e2e" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var _ = Describe("When testing unhealthy machines remediation", func() { diff --git a/test/e2e/suites/e2e/self_hosted_test.go b/test/e2e/suites/e2e/self_hosted_test.go index ba5ce5cad2..dcd5ffa99b 100644 --- a/test/e2e/suites/e2e/self_hosted_test.go +++ b/test/e2e/suites/e2e/self_hosted_test.go @@ -24,7 +24,7 @@ import ( . "github.com/onsi/ginkgo/v2" capie2e "sigs.k8s.io/cluster-api/test/e2e" - "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" + shared "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" ) var _ = Describe("When testing Cluster API provider Openstack working on [self-hosted] clusters", func() {