Skip to content

Add set no-cd and align path resolution#2981

Open
hans-d wants to merge 1 commit intocasey:masterfrom
hans-d:feat/setting-no-cd
Open

Add set no-cd and align path resolution#2981
hans-d wants to merge 1 commit intocasey:masterfrom
hans-d:feat/setting-no-cd

Conversation

@hans-d
Copy link
Copy Markdown

@hans-d hans-d commented Dec 3, 2025

Summary

Feature: Add module-local set no-cd to skip automatic cd before recipes/backticks; mutually exclusive with set working-directory; recipe attributes still override.

Opt-in behavior: Add set no-cd-strict so when no-cd is on, backticks/shell/path helpers resolve relative to the invocation directory instead of the module dir. Default remains the old behavior for compatibility.

@hans-d hans-d marked this pull request as draft December 3, 2025 10:03
@hans-d hans-d force-pushed the feat/setting-no-cd branch from 6621758 to 1a911bb Compare December 3, 2025 10:30
@hans-d hans-d marked this pull request as ready for review December 3, 2025 11:09
no-cd-strict provides more strict application of the no-cd directiive for path helpers
@hans-d hans-d force-pushed the feat/setting-no-cd branch from 1a911bb to 6423262 Compare January 1, 2026 22:57
Copy link
Copy Markdown
Owner

@casey casey left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

This mostly looks good, but I would remove set no-cd-strict from this PR and leave it for later, to make it simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants