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.
[x] I have added documentation regarding my changes where necessary
[x] Any pre-existing tests continue to pass
[x] Additional tests were made covering my changes
Types of Changes
[x] Bugfix (change that fixes an issue)
[ ] New Feature (change that adds functionality)
[ ] Documentation Update (if none of the other choices apply)
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
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 showsversions: houdini19.5==19.5.493
. It should includealiased==2.0
from the distros inherited from theapp/aliased
URI.With the patch applied the same command returns the correct:
versions: aliased==2.0, houdini19.5==19.5.493