Skip to content

fix(build): internalize fmt/args.h to avoid mixing fmt versions - #5486

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-fmtargs-wheel
Sep 19, 2026
Merged

lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-fmtargs-wheel

Conversation

@lgritz

@lgritz lgritz commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

PR #5481 added #include <fmt/args.h> to expressions.cpp, the only raw <fmt/...> include in the tree. Everything else includes <OpenImageIO/detail/fmt/...>, the copies internalized into the build tree, and args.h was not among the internalized headers.

This args.h header also needs to do the same in order to avoid version mismatches.

Curiously, it was only on the "wheel" workflow, and on Mac, where it happened to fail in CI. That's why we didn't notice when #5481 was in review -- not intentionally touching python, it did not trigger the wheel workflow.

Assisted-by: Claude Code / Claude Opus 5

PR 5481 added `#include <fmt/args.h>` to expressions.cpp, the
only raw `<fmt/...>` include in the tree. Everything else includes
`<OpenImageIO/detail/fmt/...>`, the copies internalized into the build
tree, and args.h was not among the internalized headers.

This fmt header needs to do the same in order to avoid version
mismatches.

Curiously, it was only on the "wheel" workflow, and on Mac, where it
happened to fail in CI. That's why we didn't notice when 5481 was in
review -- not intentionally touching python, it did not trigger the
wheel workflow.

Assisted-by: Claude Code / Claude Opus 5

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz

lgritz commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator Author

Pre-emptively merging without review because it fixes CI that is broken without it.

@lgritz
lgritz merged commit 1171ad0 into AcademySoftwareFoundation:main Sep 19, 2026
31 checks passed
@lgritz
lgritz deleted the lg-fmtargs-wheel branch September 21, 2026 03:55
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Sep 21, 2026
…emySoftwareFoundation#5486)

PR AcademySoftwareFoundation#5481 added `#include <fmt/args.h>` to expressions.cpp, the only raw
`<fmt/...>` include in the tree. Everything else includes
`<OpenImageIO/detail/fmt/...>`, the copies internalized into the build
tree, and args.h was not among the internalized headers.

This args.h header also needs to do the same in order to avoid version
mismatches.

Curiously, it was only on the "wheel" workflow, and on Mac, where it
happened to fail in CI. That's why we didn't notice when AcademySoftwareFoundation#5481 was in
review -- not intentionally touching python, it did not trigger the
wheel workflow.

Assisted-by: Claude Code / Claude Opus 5

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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