fix: make the find_resource! macro responsible for the absolutize() call (#8884)

https://github.com/openai/codex/pull/8879 introduced the
`find_resource!` macro, but now that I am about to use it in more
places, I realize that it should take care of this normalization case
for callers.

Note the `use $crate::path_absolutize::Absolutize;` line is there so
that users of `find_resource!` do not have to explicitly include
`path-absolutize` to their own `Cargo.toml`.
This commit is contained in:
Michael Bolin
2026-01-09 11:37:14 +00:00
committed by pap
parent 55c6894ec7
commit c80194494c
5 changed files with 27 additions and 18 deletions
+1 -1
View File
@@ -1881,6 +1881,7 @@ name = "codex-utils-cargo-bin"
version = "0.0.0"
dependencies = [
"assert_cmd",
"path-absolutize",
"thiserror 2.0.17",
]
@@ -2845,7 +2846,6 @@ dependencies = [
"anyhow",
"codex-core",
"codex-utils-cargo-bin",
"path-absolutize",
"rmcp",
"serde_json",
"tokio",