Skip to content

Move Candle specific files to a new subdirectory#9

Merged
dnezam merged 1 commit into
masterfrom
move-candle-files
Mar 26, 2026
Merged

Move Candle specific files to a new subdirectory#9
dnezam merged 1 commit into
masterfrom
move-candle-files

Conversation

@dnezam
Copy link
Copy Markdown
Collaborator

@dnezam dnezam commented Mar 26, 2026

As explained in a comment in build-instructions.sh, this leads to a bit of changing directories at the beginning.

The following mental model may be useful: all (relative) paths should be relative to the project root. The main wrinkle here is that the cake binary currently expects some files at hardcoded locations - so if we don't want those files to be at the top-level directory, we need to start Candle in a different location, and change directory right after booting.

To enable this, we also make use of the new "custom" FFI port - this will become handy in the future for getting the time and calling external binaries.

As explained in a comment in build-instructions.sh, this leads to a bit of
changing directories at the beginning.

The following mental model may be useful: all (relative) paths should be
relative to the project root. The main wrinkle here is that the cake binary
currently expects some files at hardcoded locations - so if we don't want those
files to be at the top-level directory, we need to start Candle in a different
location, and change directory right after booting.

To enable this, we also make use of the new "custom" FFI port - this will become
handy in the future for getting the time and calling external binaries.
@dnezam dnezam merged commit 7b470ac into master Mar 26, 2026
1 check passed
@dnezam dnezam deleted the move-candle-files branch March 26, 2026 02:38
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