Skip to content

Add include-optional directive. - #102

Open
thet wants to merge 1 commit into
mxstack:mainfrom
thet:thet/include-optional
Open

thet wants to merge 1 commit into
mxstack:mainfrom
thet:thet/include-optional

Conversation

@thet

@thet thet commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
  • Add include-optional for INI configuration files that may be absent, skipping missing local files and HTTP 404 responses while preserving mandatory includes. This allows projects to define an optional include for client-specific customizations.

  • Fix HTTP error logging during INI inclusion and preserve the original exception.

  • Fix relative INI includes from URLs with a directory path.

What this PR solves

In my coredev buildout I have added a

include =
    ...
    mx-custom.ini

File to add my own customizations but keep the changes in git-managed files minimal.
Still, I need to do a git stash; git pull; git stash pop when syncing with upstream.
We do have something similar in buildout.coredev: optional-extends.

image image

/cc @mauritsvanrees @jensens @rnixx

- Add ``include-optional`` for INI configuration files that may be
  absent, skipping missing local files and HTTP 404 responses while
  preserving mandatory includes. This allows projects to define an
  optional include for client-specific customizations.

- Fix HTTP error logging during INI inclusion and preserve the original
  exception.

- Fix relative INI includes from URLs with a directory path.

Co-authored-by: Codex <noreply@openai.com>
@thet
thet force-pushed the thet/include-optional branch from aca2d40 to a7eb181 Compare September 28, 2026 10:36

This branch has not been deployed

No deployments
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