fix: controller debug message - sotw has not changed #19
code-style.yaml
on: pull_request
Lint
25s
Matrix: Auto-format and Check
Annotations
4 errors and 8 warnings
Auto-format and Check (gofmt):
controller/controller.go#L1
Please run gofmt -s.
diff --git a/controller/controller.go b/controller/controller.go
index ab70a30..5cbe67e 100644
--- a/controller/controller.go
+++ b/controller/controller.go
@@ -333,8 +333,8 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store]
if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events
c.propagate(events)
} else {
- c.logger.V(1).Info("state of the world has not changed")
- }
+ c.logger.V(1).Info("state of the world has not changed")
+ }
return objs
}
|
Auto-format and Check (gofmt)
Process completed with exit code 1.
|
Auto-format and Check (goimports):
controller/controller.go#L1
Please run goimports .
diff --git a/controller/controller.go b/controller/controller.go
index ab70a30..5cbe67e 100644
--- a/controller/controller.go
+++ b/controller/controller.go
@@ -333,8 +333,8 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store]
if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events
c.propagate(events)
} else {
- c.logger.V(1).Info("state of the world has not changed")
- }
+ c.logger.V(1).Info("state of the world has not changed")
+ }
return objs
}
|
Auto-format and Check (goimports)
Process completed with exit code 1.
|
Auto-format and Check (gofmt)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Auto-format and Check (gofmt)
Restore cache failed: Dependencies file is not found in /home/runner/work/policy-machinery/policy-machinery. Supported file pattern: go.sum
|
Auto-format and Check (goimports)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Auto-format and Check (goimports)
Restore cache failed: Dependencies file is not found in /home/runner/work/policy-machinery/policy-machinery. Supported file pattern: go.sum
|
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: andstor/file-existence-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3, andstor/file-existence-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/policy-machinery/policy-machinery. Supported file pattern: go.sum
|