bottlerocket-os / bottlerocket-os/twoliter
Cannot override `build` directory
- Dominant language
- Rust
- Stars
- 34
- Forks
- 43
- Avg merge
- 11h 13m
- Merged PRs (30d)
- 16
Description
While Twoliter's [internal `Makefile.toml` allows changing the build directory](https://github.com/bottlerocket-os/twoliter/blob/7eeedfa37bc4a16b059a5a215f7ef1714fdd4c64/twoliter/embedded/Makefile.toml#L12), the name of that directory itself is hardcoded in several other places throughout twoliter/buildsys:
* [In `buildsys` itself](https://github.com/bottlerocket-os/twoliter/blob/7eeedfa37bc4a16b059a5a215f7ef1714fdd4c64/tools/buildsys-config/src/lib.rs#L1)
* [In Twoliter's dockerfile](https://github.com/bottlerocket-os/twoliter/blob/7eeedfa37bc4a16b059a5a215f7ef1714fdd4c64/twoliter/embedded/build.Dockerfile#L503) (`"/host/build"`)
Other build systems sometimes like to use the `build` directory -- it would be useful to be able to direct Twoliter to use an alternative directory.
Contributor guide
Research direction
Start with tools/buildsys-config/src/lib.rs and the hardcoded "/host/build" in twoliter/embedded/build.Dockerfile, then compare them with the configurable directory in twoliter/embedded/Makefile.toml. Trace every cited buildsys use of the directory name and make the alternative directory apply consistently throughout Twoliter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dockerfile, rust
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100