Skip to content

fix(config): include - parent path breaks includes on runtime#968

Merged
gbin merged 1 commit into
copper-project:masterfrom
LechevSpace:fix/config-include-with-relative-path
Mar 27, 2026
Merged

fix(config): include - parent path breaks includes on runtime#968
gbin merged 1 commit into
copper-project:masterfrom
LechevSpace:fix/config-include-with-relative-path

Conversation

@elpiel

@elpiel elpiel commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Running the cu_missions example with the addition of a included template causes this error when running inside the cu_missions dir:

copper/examples/cu_missions$ cargo r
   ...
   
     Running `/home/elpiel/Projects/copper/target/debug/cu-missions`
Here take current_dir

thread 'main' (876552) panicked at examples/cu_missions/src/main.rs:36:10:
Failed to create runtime: CuError { message: "Failed to read include file: /template.ron", cause: Some("No such file or directory (os error 2)") }

Related issues

  • Closes #

Changes

Testing

  • just fmt
  • just lint
  • just test
  • optional full just std-ci (if std/runtime paths are impacted)
  • optional full just nostd-ci (if embedded/no_std paths are impacted)
  • Other (please specify):

pro-tip: just with no parameters in the root defaults to just fmt, just lint, and just test.

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

Breaking changes (if any)

Additional context

Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
@gbin gbin added bug Something isn't working include in changelog labels Mar 27, 2026
@gbin gbin merged commit 0039cae into copper-project:master Mar 27, 2026
24 of 25 checks passed
@gbin

gbin commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working include in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants