blurstudio / hab

A application environment and launcher
GNU Lesser General Public License v3.0
25 stars 3 forks source link

Fix bug in forced requirements when inheriting distros #88

Closed MHendricks closed 9 months ago

MHendricks commented 9 months ago

If using a URI config that inherits distros, attempting to add a forced_requirement would case the inherited distros to be lost and it would only get the forced requirements. For example see hab -r houdini19.5 dump app/aliased -v without this fix.

Checklist

Types of Changes

Proposed Changes

These examples use the site config site_main.json.

Without the patch, if you run hab -r houdini19.5 dump app/aliased/config -v, the versions report incorrectly shows versions: houdini19.5==19.5.493. It should include aliased==2.0 from the distros inherited from the app/aliased URI.

With the patch applied the same command returns the correct: versions: aliased==2.0, houdini19.5==19.5.493