Skip to content

Config: Prefer .herb.yml over soft project indicators#1602

Merged
marcoroth merged 1 commit into
mainfrom
config-fix-project-root-detection
Apr 4, 2026
Merged

Config: Prefer .herb.yml over soft project indicators#1602
marcoroth merged 1 commit into
mainfrom
config-fix-project-root-detection

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

@marcoroth marcoroth commented Apr 4, 2026

The findProjectRootSync and findConfigFile would stop at the first directory containing any project indicator (like README.md), even if .herb.yml existed higher up in the directory tree.

This caused exclude patterns to be silently ignored when files were passed from subdirectories that happened to contain a README.md or similar indicator.

Now both methods remember the first indicator match as a fallback but keep walking up looking for .herb.yml. If found, it takes priority.

Resolves #1595

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 4, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1602
npx https://pkg.pr.new/@herb-tools/language-server@1602
npx https://pkg.pr.new/@herb-tools/linter@1602

commit: d5a19a7

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 4, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit d5a19a7


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit 9d1fe2c into main Apr 4, 2026
20 checks passed
@marcoroth marcoroth deleted the config-fix-project-root-detection branch April 4, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config: Exclude ignored files even when passed as CLI argument

1 participant