Closed srak289 closed 2 years ago
I definitely think I can improve things by catching AsyncRequired in machine_type. Long term, we might be able to catching things at the add_provider call site, but that will take some sort of mechanism to add validators to check and see that a particular provider is sensible for a particular key.
Given layout.py (see below) and accompanying stack-trace (below layout.py) this issue is specifically addressing the murkiness of the error message received by the user when dependency_quote is not specified where it is necessary.
The solution to indicate to the user is to change the line:
add_provider(machine_implementation_key, AwsVm)
to:add_provider(machine_implementation_key, dependency_quote(AwsVm))
Hopefully this can be made clearer.layout.py:
stack-trace resulting from
carthage-runner --no-tmux --generate --config config.yml --start --keep
: