Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Omittable Distro support per URI config #105

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Conversation

MHendricks
Copy link
Member

Checklist

  • I have read the CONTRIBUTING.md document
  • I formatted my changes with black
  • I linted my changes with flake8
  • I have added documentation regarding my changes where necessary
  • Any pre-existing tests continue to pass
  • Additional tests were made covering my changes

Types of Changes

  • Bugfix (change that fixes an issue)
  • New Feature (change that adds functionality)
  • Documentation Update (if none of the other choices apply)

Proposed Changes

`hab.utils.dumps_json` now enables sort_keys by default. This makes it so
the resulting json data is consistently ordered.
Switch from processing all properties on the current node, then checking
the parent if any were NotSet to fully processing each property in
sort_key order before moving on to the next property.

This fixes an bug where distro global env vars are not added to the global env when distro is inherited.
This also makes it so hab_properties can be defined only on parent or default.
This allows you to override the requirements per-config instead of having
to modify the global setting stored on the Resolver instance.
@MHendricks MHendricks merged commit c2ae21d into main Oct 8, 2024
31 checks passed
@MHendricks MHendricks deleted the mikeh/omit_dists branch October 8, 2024 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