Resolve variant includes with the correct ordering

Authored by Dan Duvall <dduvall@wikimedia.org> on Wed, Jan 31, 11:32 PM.

Description

Resolve variant includes with the correct ordering

Summary:
Refactored variant include resolution to correctly order the hierarchy
of includes while still protecting against infinite recursion. The
function was renamed, refactored for clarity, and exported so as to be
better tested and documented with examples.

Test Plan:
Run go test ./....

Check the rendered config.ResolveIncludes godoc for sanity.

Reviewers: thcipriani, mmodell, hashar, Jrbranaa, zeljkofilipin, demon, #release-engineering-team

Reviewed By: thcipriani, #release-engineering-team

Tags: #release-engineering-team

Differential Revision: https://phabricator.wikimedia.org/D959

Details

Committed
Dan Duvall <dduvall@wikimedia.org>Wed, Feb 7, 6:28 PM
Parents
rGBLBR00820cbd6bbc: Use dep for dependency management and commit vendor
Branches
Unknown
Tags
Unknown
References
HEAD -> master
ChangeId
None
Dan Duvall <dduvall@wikimedia.org> committed rGBLBRf606d212fd94: Resolve variant includes with the correct ordering (authored by Dan Duvall <dduvall@wikimedia.org>).Wed, Feb 7, 6:28 PM