Skip to content

Do not auto-create ecs.php when --config is provided - #163

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-skip-config-create-on-config-flag
Oct 8, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-skip-config-create-on-config-flag

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

When --config <path> points to a config outside the current directory and that config registers no checkers (or is not found), ECS fell back to the auto-init path and offered to generate a new ecs.php in the cwd, instead of honoring the explicitly provided config.

Guard the auto-create step so it only runs when no --config flag was given. With an explicit --config, ECS now always uses that config and never generates a new one.

@TomasVotruba
TomasVotruba force-pushed the tv-skip-config-create-on-config-flag branch from 22bdae6 to 6f67e4d Compare October 8, 2026 10:39
@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 8, 2026 10:39
@TomasVotruba
TomasVotruba merged commit 537a993 into main Oct 8, 2026
19 checks passed
@TomasVotruba
TomasVotruba deleted the tv-skip-config-create-on-config-flag branch October 8, 2026 10:42
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