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

Script fetcher #170

Merged
merged 12 commits into from
Dec 28, 2023
Merged

Script fetcher #170

merged 12 commits into from
Dec 28, 2023

Conversation

agateau
Copy link
Owner

@agateau agateau commented Dec 28, 2023

This PR adds a new fetcher: ScriptFetcher. This fetcher uses the Boa JavaScript engine, making it possible to fetch package updates from various sources.

I created a matching branch on Clyde store to make use of this fetcher and provide updates for the node16, vault and helm packages: next-use-script-fetcher.

Makes it possible to fetch from many sources.
This is going to make it possible for ScriptFetcher to load a script from
$package_dir/fetch.js.
This has a few advantages:
- when running `clydetools fetch` while working on the fetch script, the
  file on which one is working is not overwritten
- proper syntax highlighting
Scripts don't have to care about arch-os anymore, they just have to return
a list of artifact URLs.
This is required when querying GitHub.
@agateau agateau merged commit d7f8fde into main Dec 28, 2023
7 checks passed
@agateau agateau deleted the script-fetcher branch December 28, 2023 16:52
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

Successfully merging this pull request may close these issues.

1 participant