Skip to content

build: bump gfmrun to v1.3.3 - #2472

Merged
asahasrabuddhe merged 3 commits into
urfave:mainfrom
Grivn:fix/gfmrun-source-install
Oct 16, 2026
Merged

asahasrabuddhe merged 3 commits into
urfave:mainfrom
Grivn:fix/gfmrun-source-install

Conversation

@Grivn

@Grivn Grivn commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • bug

What this PR does / why we need it:

make ensure-gfmrun fails on darwin/arm64 with HTTP 404 because gfmrun v1.3.0 has no binary for that platform. Bump to v1.3.3, which provides the missing binary, so the existing download-based installer works on Apple Silicon.

Which issue(s) this PR fixes:

No existing issue.

Testing

On darwin/arm64 with Go 1.27.2:

  • Downloaded the v1.3.3 binary with make ensure-gfmrun and verified its version and release checksum.
  • Verified a fresh installation with --top-dir . and that a second run reuses the installed binary.
  • make all, make lint, and make v3diff pass.

Release Notes

NONE

@Grivn
Grivn requested a review from a team as a code owner October 15, 2026 16:23
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] Changes how the build script installs a documentation tool.

Resolve the relative install path before merging so --top-dir . continues to work.

Findings

  1. P1 Relative directories break installation ▶

Summary

Replaces the release download with a pinned source install of gfmrun.

  • The gfmrun setup step installs the pinned tool for the host.

Reviews (1) · Last reviewed commit: "build: install gfmrun from source on the..." · Reviewed by Greptile

Comment thread scripts/build.go Outdated
),
)
if err != nil {
if err := os.Setenv("GOBIN", filepath.Dir(gfmrunExe)); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Relative directories break installation

Passing --top-dir . now makes installation fail when gfmrun is missing or outdated. This sets GOBIN to .local/bin, but go install requires an absolute path and rejects it. The previous downloader accepted this relative destination. Resolve topDir to an absolute path before changing directories and building the install path.

@asahasrabuddhe

Copy link
Copy Markdown
Member

I believe in the long run, a better solution would be to add other architecture builds on gfmrun. Downloading is cheaper than building from source on every run.

@asahasrabuddhe asahasrabuddhe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Grivn As of gfmrun v1.3.3, darwin-arm64 binaries are now available. Please update your PR to bump the gfmrun version.

@Grivn Grivn changed the title build: install gfmrun from source on the host platform build: bump gfmrun to v1.3.3 Oct 16, 2026
@Grivn

Grivn commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for adding the arm64 builds. Updated to v1.3.3 and restored the binary download, so the PR is now just the version bump.

Verified the download on darwin/arm64, including --top-dir . and a second run. make all, make lint, and make v3diff pass.

@asahasrabuddhe
asahasrabuddhe merged commit 11526c3 into urfave:main Oct 16, 2026
9 checks passed
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.

2 participants