Skip to content

Commit 7ee0f59

Browse files
author
chendelin1982
committed
fix(ci): add version: 2 to .golangci.yml for v2.x compatibility
- Add explicit 'version: 2' field at top of config - Required by golangci-lint v2.7.2 - Update compatibility comment v1.64+ → v2.7.2 Error fixed: unsupported version of the configuration: "" v2.x requires explicit version declaration in config file Related: Story 5 CI/CD Pipeline
1 parent 9ed6cf5 commit 7ee0f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# golangci-lint configuration for apprun project
2-
# Compatible with golangci-lint v1.64+
2+
# Compatible with golangci-lint v2.7.2
33
# Documentation: https://golangci-lint.run/usage/configuration/
44

5+
# Version declaration for v2.x (required)
6+
version: 2
7+
58
run:
69
timeout: 5m
710
tests: true

0 commit comments

Comments
 (0)