Skip to content

🧹 Modernize GCP provider with Go 1.21+ idioms#6892

Merged
chris-rock merged 1 commit intomainfrom
tsmith/cleanup-gcp-provider-go-idioms
Mar 16, 2026
Merged

🧹 Modernize GCP provider with Go 1.21+ idioms#6892
chris-rock merged 1 commit intomainfrom
tsmith/cleanup-gcp-provider-go-idioms

Conversation

@tas50
Copy link
Copy Markdown
Member

@tas50 tas50 commented Mar 12, 2026

Summary

  • Replace sort.Strings with slices.Sort in artifactregistry.go and discovery_test.go
  • Replace interface{} with any in secretmanager.go, secretmanager_test.go, and pubsub.go
  • Remove redundant // +build tags from connection_test.go and snapshot_debug_test.go

Test plan

  • go build ./... passes (verified locally)
  • go test ./resources/ -run "TestSecretReplication|TestExtractCustomer|TestTimestamp|TestDuration|TestGetDiscoveryTargets" passes (verified locally)
  • make test/lint passes
  • CI green

🤖 Generated with Claude Code

Replace sort.Strings with slices.Sort, interface{} with any, and remove
redundant // +build tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safe mechanical cleanup replacing interface{} with any, sort with slices, and removing redundant build tags.

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

5 424 tests  ±0   5 420 ✅ ±0   2m 25s ⏱️ -14s
  412 suites ±0       4 💤 ±0 
   31 files   ±0       0 ❌ ±0 

Results for commit 6f16bf2. ± Comparison against base commit 2116076.

@chris-rock chris-rock merged commit 8ffd6bd into main Mar 16, 2026
22 checks passed
@chris-rock chris-rock deleted the tsmith/cleanup-gcp-provider-go-idioms branch March 16, 2026 12:24
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants