Skip to content

Commit e9f83d7

Browse files
committed
fix(ci): Fix golangci-lint deprecated parameters and format code
- Replace deprecated skip-pkg-cache and skip-build-cache with skip-cache and skip-save-cache - Run go fmt on all DAG-related files - Run go mod tidy to ensure modules are clean Fixes GitHub Actions workflow error with golangci-lint-action@v7
1 parent 42c4c3d commit e9f83d7

File tree

18 files changed

+1133
-1133
lines changed

18 files changed

+1133
-1133
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
with:
5757
version: ${{ env.GOLANGCI_LINT_VERSION }}
5858
args: --no-config --enable-only=errcheck,gosec,ineffassign --timeout=5m
59-
skip-pkg-cache: false
60-
skip-build-cache: false
59+
skip-cache: false
60+
skip-save-cache: false
6161
only-new-issues: false
6262

6363
- name: Check Code Formatting

cmd/infra/analyze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func buildGraphFromPlan(plan *apply.Plan) *dag.Graph {
181181
// Add all operations as nodes
182182
for _, op := range plan.Operations {
183183
props := dag.NodeProperties{
184-
EstimatedDuration: 5 * time.Second, // Default duration
184+
EstimatedDuration: 5 * time.Second, // Default duration
185185
RiskLevel: dag.RiskLevelMedium, // Default risk level
186186
}
187187

cmd/infra/visualize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewVisualizeCmd() *cobra.Command {
4141
- Mermaid: Mermaid diagram format (for markdown/documentation)
4242
- ASCII: Terminal-friendly ASCII art
4343
- JSON: Structured JSON data`,
44-
Example: ` # Visualize as ASCII art in terminal
44+
Example: ` # Visualize as ASCII art in terminal
4545
matlas infra visualize -f config.yaml
4646
4747
# Export as Graphviz DOT format

0 commit comments

Comments
 (0)