Skip to content

extend Resource API to return the resolved uri #24241

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

Closed
devoncarew opened this issue Aug 31, 2015 · 2 comments
Closed

extend Resource API to return the resolved uri #24241

devoncarew opened this issue Aug 31, 2015 · 2 comments

Comments

@devoncarew
Copy link
Member

Right now the Resource uri returns the uri that was passing into the constructor (https://api.dartlang.org/1.12.0/dart-core/Resource-class.html). It would be nice if it could also return the uri that the resource resolves to. I.e. the ctor takes a package: uri, which likely resolves to a file: or an http: uri.

This information can be useful for tools that do need to know a bit more context about where the resources actually live. An example is an osgi / bundle loader for dart. It might want to try and locate the pubspec.yaml files for the installed packages. Right now only code and resources in lib/ are available to tools.

@devoncarew
Copy link
Member Author

cc @sethladd

@sethladd
Copy link
Contributor

Thanks! Dupe of #23990

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

No branches or pull requests

2 participants