Skip to content

Download versioned, platform-specific yak CLI - #18

Merged
chenkasirer merged 2 commits into
mainfrom
fix/yak-versioned-download
Nov 10, 2026
Merged

chenkasirer merged 2 commits into
mainfrom
fix/yak-versioned-download

Conversation

@chenkasirer

Copy link
Copy Markdown
Member

yakerize and publish_yak downloaded tools/latest/yak.exe, which now prints a deprecation warning. McNeel has stopped updating that URL and replaced it with a deprecation notice.

This PR downloads a pinned build (YAK_VERSION = "0.19.1") for the current OS and architecture, using the URLs from the yak CLI reference.

  • Windows still always downloads. macOS and Linux still prefer a yak from the Rhino app bundle or PATH, and now download the native build if neither is found.
  • The Mono fallback is removed, since it only applied to the old .NET Framework yak.exe.

Needs testing before merge: the new binary has not been run yet. Only the URL selection is covered by tests, and the download URLs were checked with headers-only requests. McNeel says v0.19.1 "requires .NET 10", and neither the docs nor the forum say whether the builds bundle the runtime. Please run invoke yakerize and invoke publish_yak --test-server on a machine without .NET 10. If it fails, CI will need .NET 10 installed, or YAK_VERSION can move to 0.15.1, which targets .NET 8.

What type of change is this?

  • Bug fix in a backwards-compatible manner.
  • New feature in a backwards-compatible manner.
  • Breaking change: bug fix or new feature that involve incompatible API changes.
  • Other (e.g. doc update, configuration, etc)

Checklist

  • I added a line to the CHANGELOG.md file in the Unreleased section under the most fitting heading (e.g. Added, Changed, Removed).
  • I ran all tests on my computer and it's all green (i.e. invoke test).
  • I ran lint on my computer and there are no errors (i.e. invoke lint).
  • I added new functions/classes and made them available on a second-level import, e.g. compas.datastructures.Mesh.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if appropriate)

🤖 Generated with Claude Code

chenkasirer and others added 2 commits November 5, 2026 18:35
McNeel no longer updates tools/latest/yak.exe and replaced it with a
deprecation notice. Download the pinned build for the current platform
instead, and drop the Mono fallback, which only applied to the old
.NET Framework yak.exe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gonzalocasas gonzalocasas 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.

LGTM

@chenkasirer
chenkasirer merged commit 62c0544 into main Nov 10, 2026
6 checks passed
@chenkasirer
chenkasirer deleted the fix/yak-versioned-download branch November 10, 2026 08:47
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