You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve CI failures - format and linting issues
Fix all issues causing CI to fail:
1. Go format issues (go fmt):
- pkg/console/service/rule_version.go
- pkg/core/resource/apis/mesh/v1alpha1/rule_intent_types.go
- pkg/core/versioning/resource_store_adapter.go
- pkg/core/versioning/subscriber.go
- pkg/store/dbcommon/gorm_store.go
2. Go vet issues - mutex copy in DeepCopy:
- Use proto.Clone() instead of direct struct copy
- Fixes mutex copy warnings for RuleVersion/RuleIntent/RuleMeta
- Added google.golang.org/protobuf/proto import
3. Test compilation errors:
- Fix ListResources() → List() in store tests
- Add type assertions for model.Resource
- Remove unused imports (testing, require, memorystore)
All changes ensure:
- go fmt ./... passes
- go vet ./... passes
- go build ./... passes
- Tests compile successfully
Related: #1477 CI failure fix
0 commit comments