-
Notifications
You must be signed in to change notification settings - Fork 39
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
Allow to load a repository file from local filesystem #115
Comments
Will love to work on this issue @Angelmmiguel |
That's amazing @carrycooldude! I'm going to add more details to this issue and how to implement it in |
Done @carrycooldude ! Feel free to add any question you may have about this change. Thank you! |
Hey @Angelmmiguel , actually I am not able to understand the problem properly... |
Hello @carrycooldude, About this issue,
This information is hardcoded on the Currently, the |
Is your feature request related to a problem? Please describe.
After adding support for multiple languages in
wws
1.0.0, we introduced the concept of the index repository. Thistoml
file contains information about the available language runtimes developers can download.We constantly release new versions of these runtimes as we add new languages, versions and revisions of the polyfills and wrappers. To test them, you need to point
wws
to a different location using theWWS_REPO_NAME
andWWS_REPO_URL
environment variables (or the--repo-name
and--repo-url
params).This is not convenient for development / debugging as you need to push changes to a remote place that
wws
can fetch. These URLs are always remote, as thefile://
URL scheme is not allowed.Describe the solution you'd like
Allow to get the
index.toml
and related files from the local filesystem. For that, we can check theprotocol
of theWWS_REPO_URL
or--repo-url
URL. Note thatreqwest
doesn't plan to support thefile://
scheme as the project focuses on HTTP requests, so we cannot rely on it.Instead, if we detect the
file://
protocol,wws
should try to open that file directly usingfs::File
.We can detect these URLs and use the
File
rust library.Describe alternatives you've considered
Currently, I'm uploading these files to public gists for testing, but it shouldn't be required.
Additional context
No response
The text was updated successfully, but these errors were encountered: