Skip to content

refactor: default missing ConfigEntry fields and split flag resolution (v0.4.6)#20

Merged
masonlet merged 4 commits into
mainfrom
refactor/defaults
Jul 4, 2026
Merged

refactor: default missing ConfigEntry fields and split flag resolution (v0.4.6)#20
masonlet merged 4 commits into
mainfrom
refactor/defaults

Conversation

@masonlet

@masonlet masonlet commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

Loading a config file that predates a field addition no longer fails, missing ConfigEntry fields now fall back to defaults. Also splits resolve_with_config into per-group resolvers and dedupes test fixtures.

Changes

  • ConfigEntry gets #[serde(default)] + a manual Default impl (with real "build"/"build-mono" dir defaults), so configs omitting any field load cleanly instead of erroring
  • create_default_config and all test fixtures now build from ConfigEntry::default(), single source of truth, deleted the sample_entry fixture
  • resolve_with_config split into resolve_connection_flags / resolve_run_flags / resolve_build_flags / resolve_mono_flags, plus the existing resolve_flag_pair, main fn is now just assembly

@masonlet
masonlet merged commit a304f8c into main Jul 4, 2026
10 checks passed
@masonlet
masonlet deleted the refactor/defaults branch July 4, 2026 19:44
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