Skip to content

Feat/configurable target directory#1

Open
zjwilliams wants to merge 4 commits intomainfrom
feat/configurable-target-directory
Open

Feat/configurable target directory#1
zjwilliams wants to merge 4 commits intomainfrom
feat/configurable-target-directory

Conversation

@zjwilliams
Copy link
Owner

@zjwilliams zjwilliams commented Jan 29, 2026

Clone of cabinpkg#1266 for CI verification.

Added partial support for modifying the target directory in a cargo-like
way. This allows the target directory to be set with either the
`CABIN_TARGET_DIR` environment variable or with the `build.target-dir`
configuration value in cabin.toml - with the configuration file taking
priority. I plan to also support the `--target-dir` cli option, but that
is not included in this commit.
@zjwilliams zjwilliams force-pushed the feat/configurable-target-directory branch from 9b7841e to 6299d12 Compare January 29, 2026 14:43
This adds the '--target-dir' option to 'build', 'run', and 'test'. The
effect is the same as setting 'CABIN_TARGET_DIR' or 'build.target-dir';
although the cli option will take precedence over the other two.
This addresses the errors generated by "lint" and "tidy", primarily
removed the std::move() calls on const variables and converting
Manifest::fromTargetDir() to use a braced initializer.
@zjwilliams zjwilliams force-pushed the feat/configurable-target-directory branch from 6299d12 to 596304a Compare January 29, 2026 14:48
This added tests for build, run, and test using --target-dir. This
revealed a bug with test that is also fixed in this commit.
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