unjs/giget

built-in `tar:` provider

Closed this issue · 4 comments

pi0 commented

Support a built-in provider to automatically resolve from a URL to a tar file

What would be the use case for this?. Just wanna understand it with an example to see if I can help.

pi0 commented

This way we can support any artillery template provider using a known convention without the need to create a custom one, out of the box.

Something like this: tar:https://my-template-registry.com/template/v1.tar#name=pikachu&version=1.0.0

Resolves to:

{
    name: 'pikachu',
    version: '1.0.0',
    tar: `https://my-template-registry.com/template/v1.tar`
}

This way, other than custom CDN, we can support npm registry and github releases as template provider! Examples:

@pi0 I can take this if you approve the scope described above

When will this functionality be in master?