Skip to content

feat: go 1.26 & extended bake cache from to#135

Merged
franklinkim merged 4 commits intomainfrom
feature/extended-bake-cache-from-to
Mar 10, 2026
Merged

feat: go 1.26 & extended bake cache from to#135
franklinkim merged 4 commits intomainfrom
feature/extended-bake-cache-from-to

Conversation

@franklinkim
Copy link
Copy Markdown
Member

@franklinkim franklinkim commented Mar 10, 2026

Description

Modernize codebase tooling, dependencies, and Go idioms. Add support for extended docker buildx bake cache configuration via SQUADRON_BAKE_CACHE_FROM and SQUADRON_BAKE_CACHE_TO environment variables.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactoring
  • ⚡ Performance
  • ✅ Tests
  • 🔧 Build/CI

Changes

  • Extended bake cache support: Add default case in Bakefile() that reads SQUADRON_BAKE_CACHE_FROM and SQUADRON_BAKE_CACHE_TO env vars, supporting semicolon-delimited Go template strings for flexible cache-from/cache-to configuration on any cache type
  • New util.StringToMap helper to parse key=value,key2=value2 strings into maps (used for bake cache entries)
  • Go idiom modernization: Replace strings.HasPrefix + strings.TrimPrefix with strings.CutPrefix; use strings.Builder in SprintError
  • Dependency updates: Go 1.25.4 → 1.26.1, go-git v5/v6, k8s.io v0.34 → v0.35, pterm, golangci-lint 2.7 → 2.11, biome 2.3 → 2.4, lefthook 2.0 → 2.1, bun 1.3.4 → 1.3.10, and many transitive deps
  • Config file renames: .golangci.yml.golangci.yaml, .goreleaser.yml.goreleaser.yaml
  • GoReleaser improvements: Add project_name, -trimpath and -tags=safe flags, exclude windows/arm64
  • Makefile improvements: Add go.work support, generate target, test.race target, reorganize sections
  • Lefthook: Add Claude rules sync reminders on Makefile/.golangci.yaml changes; switch lint pre-commit to golangci-lint fmt
  • Dependabot: Add Docker ecosystem, shorten commit prefix to sec(deps)
  • Enable modernize linter in golangci-lint config

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.

Notes

The SQUADRON_BAKE_CACHE_FROM / SQUADRON_BAKE_CACHE_TO env vars accept semicolon-separated Go template strings with {{.Squadron}}, {{.Unit}}, and {{.Bake}} data available. Each string is prepended with the cache type= prefix automatically.

@franklinkim franklinkim merged commit d9fddb9 into main Mar 10, 2026
4 checks passed
@franklinkim franklinkim deleted the feature/extended-bake-cache-from-to branch March 10, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant