Skip to content

Commit fb87e61

Browse files
committed
🌱 Bump golanci-lint to v2.7.2
Golanci-lint is updated to the newest version. Two new linting errors appeared: 1. The errors package conflicts with standard library package. 2. The shared package name is considered "meaningless". I have renamed these packages to capoerrors and e2eshared. This is a backport of #2894. Signed-off-by: Lennart Jern <[email protected]>
1 parent 67f1637 commit fb87e61

21 files changed

+21
-21
lines changed

‎api/v1beta1/zz_generated.deepcopy.go‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎hack/tools/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ROOT_DIR_RELATIVE := ../..
1616
include $(ROOT_DIR_RELATIVE)/common.mk
1717

18-
GOLANGCI_LINT_VERSION ?= v2.6.2
18+
GOLANGCI_LINT_VERSION ?= v2.7.2
1919

2020
# GOTESTSUM version without the leading 'v'
2121
GOTESTSUM_VERSION ?= 1.12.0

‎pkg/utils/errors/errors.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package errors
17+
package capoerrors
1818

1919
import (
2020
"errors"

‎pkg/utils/errors/terminal.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package errors
17+
package capoerrors
1818

1919
import (
2020
goerrors "errors"

‎test/e2e/shared/cluster.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"context"

‎test/e2e/shared/common.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"context"

‎test/e2e/shared/context.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"context"

‎test/e2e/shared/defaults.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"errors"

‎test/e2e/shared/exec.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"bytes"

‎test/e2e/shared/exec_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
1616
limitations under the License.
1717
*/
1818

19-
package shared
19+
package e2eshared
2020

2121
import (
2222
"context"

0 commit comments

Comments
 (0)