Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add util function to aikido::io to create a CompositeResourceRetriever #609

Open
egordon opened this issue Sep 15, 2021 · 0 comments
Open

Comments

@egordon
Copy link
Contributor

egordon commented Sep 15, 2021

Currently, we almost exclusively use the CatkinResourceRetriever, which only accepts the package:// schema.

There are other ResourceRetrievers we can use that can accept other schemas (e.g. file://, dart://).

DART has a CompositeResourceRetriever object that is more flexible, delegating to individual retrievers based on the schema (or based on precedence, i.e., try one retriever, and then move on to another if the first fails).

To simplify the process of using ResourceRetrievers, we can add a utility function to the aikido::io module that returns a CompositeResourceRetriever that can handle at least package://, file://, dart:// and potentially no schema (i.e. file path relative to execution point) to use as a default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant