Skip to content

feat: integrate charm.land/turtle core utilities - #3107

Merged
andreynering merged 1 commit into
mainfrom
turtle
Nov 27, 2026
Merged

andreynering merged 1 commit into
mainfrom
turtle

Conversation

@andreynering

@andreynering andreynering commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

This patch migrates the core utilities built-in in Task to a new implementation: charm.land/turtle.

It also introduces a new coreutils: config to .taskrc.yml with the following options:

  • turtle: uses built-in core utilities
  • system: prefers system, falls back to turtle
  • auto: prefers turtle on windows, system otherwise
  • off: disables the middleware completely

Additionally, the old ENV was renamed to CRUSH_COREUTILS, but CRUSH_CORE_UTILS still works as an alias. It also accepts the four values above, but for backwards compatibility we're supporting boolean values as before: true/1 maps to turtle while false/0 maps to auto.

Includes two fixes forced by the mvdan/sh bump: literal path expansions cannot eat Windows backslashes anymore, and recursive source globs follow directory symlinks again (with loop protection).

Assisted-by: Crush:prism

@andreynering andreynering self-assigned this Nov 25, 2026

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

I am wondering if Coreutils should not be in taskrc.yml instead of the Taskfile itself. It's more a global configuration for either a project or a user.
Almost all env variable settings are in the taskrc.yml

@andreynering

andreynering commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

@vmaerten Of course you're right! 😄

This was a misight. I'll move it to taskrc.yml. Thanks for reviewing!

@andreynering
andreynering force-pushed the turtle branch 4 times, most recently from 03280d9 to add5ca4 Compare November 26, 2026 14:20
Comment thread .github/workflows/ci.yml Resolved

@vmaerten vmaerten 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 🚀

This patch migrates the core utilities built-in in Task to a new
implementation: `charm.land/turtle`.

It also introduces a new `coreutils:` config in `.taskrc.yml` with the
following options:

* `turtle`: uses built-in core utilities
* `system`: prefers system, falls back to turtle
* `auto`: prefers turtle on windows, system otherwise
* `off`: disables the middleware completely

Additionally, the old ENV was renamed to `CRUSH_COREUTILS`, but
`CRUSH_CORE_UTILS` still works as an alias. It also accepts the four
values above, but for backwards compatibility we're supporting boolean
values as before: `true/1` maps to `turtle` while `false/0` maps to
`auto`.

Includes two fixes forced by the mvdan/sh bump: literal path
expansions cannot eat Windows backslashes anymore, and recursive
source globs follow directory symlinks again (with loop protection).

Assisted-by: Crush:prism
@andreynering
andreynering merged commit ddb6215 into main Nov 27, 2026
26 checks passed
@andreynering
andreynering deleted the turtle branch November 27, 2026 21:53
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