Skip to content

docs: resolve latest version dynamically in wget install example#2610

Open
gitmpr wants to merge 1 commit intomikefarah:masterfrom
gitmpr:docs/dynamic-latest-version
Open

docs: resolve latest version dynamically in wget install example#2610
gitmpr wants to merge 1 commit intomikefarah:masterfrom
gitmpr:docs/dynamic-latest-version

Conversation

@gitmpr
Copy link

@gitmpr gitmpr commented Feb 23, 2026

Summary

  • Replaces the hardcoded VERSION=v4.2.0 in the wget install example with a dynamic lookup via the GitHub API
  • Moves the inline comment to the PLATFORM variable, which is the only thing users actually need to adjust

Before

# Set your platform variables (adjust as needed)
VERSION=v4.2.0
PLATFORM=linux_amd64

After

PLATFORM=linux_amd64  # adjust as needed
VERSION=$(wget -qO- https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r .tag_name)

Replaces the hardcoded version with a GitHub API lookup so the install
snippet always uses the latest release without needing manual updates.
@gitmpr gitmpr force-pushed the docs/dynamic-latest-version branch from fbac083 to 94353d7 Compare February 23, 2026 10:49
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