Skip to content

architecture improvements - #18

Open
mikonse wants to merge 2 commits into
mainfrom
milo/architecture-improvements
Open

architecture improvements#18
mikonse wants to merge 2 commits into
mainfrom
milo/architecture-improvements

Conversation

@mikonse

@mikonse mikonse commented Aug 2, 2026

Copy link
Copy Markdown
Member

No description provided.

mikonse added 2 commits August 2, 2026 21:31
- better seperate out config resolution from main function
- introduce proper distro version selection with error handling from changelog
@mikonse
mikonse requested a review from TheJJ August 2, 2026 19:34
@mikonse mikonse self-assigned this Aug 2, 2026

@TheJJ TheJJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naise! i split up build.rs in #20, so we have to see which of these lands first so we can combine nicely

fn read_changelog_package(dir: &Path) -> anyhow::Result<ChangelogPackage> {
let changelog_file = dir.join("debian").join("changelog");
let changelog_contents = std::fs::read_to_string(changelog_file)?;
let changelog: debian_changelog::ChangeLog = changelog_contents.parse()?;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't this read a file directly?

driver: args.driver,
persist_driver: args.persist_driver,
incremental: args.incremental,
docker_base_image: args.docker.base_image.clone(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could store a variant here, so we can switch between build driver parameters

output_dir: args.output_dir.clone(),
config_file: cli.config.clone(),
driver: args.driver,
persist_driver: args.persist_driver,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i renamed this cli flag "persistent"

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.

2 participants