Skip to content

[Sync] Update project files from source repository (0877483) - #360

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260914-210038-0877483
Sep 14, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260914-210038-0877483

Conversation

@mrz1836

@mrz1836 mrz1836 commented Sep 14, 2026

Copy link
Copy Markdown
Member

What Changed

  • MAGE_X_VERSION: v1.27.1 → v1.27.2 (.github/env/10-mage-x.env)

  • MAGE_X_GOFUMPT_VERSION: v0.12.0 → v0.11.0 (.github/env/10-mage-x.env)

  • GO_PRE_COMMIT_VERSION: v1.10.1 → v1.11.0 (.github/env/10-mage-x.env)

  • GO_PRE_COMMIT_FUMPT_VERSION: v0.12.0 → v0.11.0 (.github/env/10-mage-x.env)

  • Added MAGE_X_GOFUMPT_VERSION_LATEST = v0.12.0 (.github/env/10-mage-x.env)

  • Added MAGE_X_GOFUMPT_VERSION_LATEST_MIN_GO = 1.26 (.github/env/10-mage-x.env)

  • Added GO_PRE_COMMIT_FUMPT_VERSION_LATEST = v0.12.0 (.github/env/10-mage-x.env)

  • Added GO_PRE_COMMIT_FUMPT_VERSION_LATEST_MIN_GO = 1.26 (.github/env/10-mage-x.env)

  • Introduced dual-version pinning for gofumpt to support both Go 1.25.x and Go 1.26+ toolchains

  • Added comprehensive inline documentation explaining the version selection strategy and update process

  • Updated OSV-Scanner comment to clarify that official release binaries with SHA-256 verification are now used instead of go install

Why It Was Necessary

  • gofumpt v0.12.0 requires Go 1.26, which breaks go install on repositories still using Go 1.25.x
  • Dual-version support allows repositories on different Go versions to use the same synced env files without forced upgrades
  • Documentation ensures maintainers understand the version selection logic and how magex updateToolVersions manages these pins

Testing Performed

  • Automated file synchronization validation passed for both modified env files
  • Version pinning logic verified to maintain backwards compatibility with Go 1.25.x runners
  • Comment additions validated for clarity and technical accuracy regarding toolchain requirements

Impact / Risk

  • Breaking Change: None - baseline versions downgraded to maintain Go 1.25.x compatibility while latest versions added for Go 1.26+ runners
  • Compatibility: Improved - repositories on Go 1.25.x will continue working, while Go 1.26+ repositories can use newer tooling
  • Risk: Low - changes are additive with fallback behavior to single-version mode for older mage-x/go-pre-commit binaries

Copilot AI lite review requested due to automatic review settings September 14, 2026 21:00
@mrz1836 mrz1836 self-assigned this Sep 14, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Sep 14, 2026
@github-actions github-actions Bot added update General updates size/S Small change (11-50 lines) labels Sep 14, 2026
@mrz1836
mrz1836 merged commit b29ee6e into master Sep 14, 2026
25 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20260914-210038-0877483 branch September 14, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Runner-dependent gofumpt selection can be bypassed by the existing cache, and CI version summaries may be misleading.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates shared Go tooling pins for Go 1.25/1.26 compatibility through dual gofumpt versions.

Changes:

  • Updates MAGE-X and go-pre-commit versions.
  • Adds baseline/latest gofumpt pins with Go-version thresholds.
  • Clarifies OSV-Scanner verification documentation.
File summaries
File Summary
.github/env/10-pre-commit.env Updates pre-commit and gofumpt configuration; cache keys and CI summaries should reflect the resolved gofumpt version.
.github/env/10-mage-x.env Updates MAGE-X and gofumpt configuration and related documentation.
Review details

Suppressed comments (1)

.github/env/10-pre-commit.env:65

  • The effective version is now runner-dependent, but the CI summaries still print only GO_PRE_COMMIT_FUMPT_VERSION (fortress-pre-commit.yml:272 and fortress-setup-config.yml:1005). On this repository's Go 1.26.x runners, those summaries will report v0.11.0 even when v0.12.0 is selected, which makes tool-version diagnostics misleading. Report the resolved version, or show both pins together with the selected Go version.
GO_PRE_COMMIT_FUMPT_VERSION_LATEST=v0.12.0
GO_PRE_COMMIT_FUMPT_VERSION_LATEST_MIN_GO=1.26
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/env/10-pre-commit.env Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/S Small change (11-50 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants