41 highlighted that my assumption that a root module lockfile would override lockfiles coming from module dependencies. The iteration order of module_ctx.modules is well specified and opposite of what I had assumed when originally writing this code.
Summary
Reverse the iteration order of module_ctx.modules to ensure that root module declared tools win over module dependency declared tools.
Issue
Fixes #41.
41 highlighted that my assumption that a root module lockfile would override lockfiles coming from module dependencies. The iteration order of
module_ctx.modules
is well specified and opposite of what I had assumed when originally writing this code.Summary
Reverse the iteration order of
module_ctx.modules
to ensure that root module declared tools win over module dependency declared tools.