code-marketplace icon indicating copy to clipboard operation
code-marketplace copied to clipboard

Allow to fallback to VS Code marketplace for missing packages

Open Alikont opened this issue 1 year ago • 5 comments

With a lot of package management feeds, it's common to support falling back to upstream feed for missing packages, so you can do all operations with a single feed url.

Service should return local packages if it's available, and fall back to real marketplace if it's not.

Alikont avatar Aug 01 '24 16:08 Alikont

I do not think we can specifically point to the VS Code marketplace for legal reasons.

But, it would be cool to implement a generic fallback so you can specify a different marketplace, like say Open VSX.

code-asher avatar Aug 02 '24 20:08 code-asher

Although I wonder if some kind of caching proxy is a better fit for this use case.

code-asher avatar Aug 02 '24 20:08 code-asher

What I want is to have a single URL that I can configure for people to have both private and public packages

For me it's enough to just proxy it

Yes, a generic "fallback url" is a good config, so it's users who bear legal responsibility

Alikont avatar Aug 03 '24 12:08 Alikont

Although I wonder if some kind of caching proxy is a better fit for this use case.

@code-asher Maybe some functionality like Nexus repository manager/Docker registry that can act as a proxy of an upstream extension registry (i.e., open-vsx.org). In this way, install extension that requires specific versions will not fail if that version is missing in local marketplace.


updated: I find that ovsx have implemented the proxy mode (also mirror mode). So, code-marketplace should main serve as an offline service, on which extension can only be added via files.

garylavayou avatar Nov 24 '24 02:11 garylavayou

I also just learned about https://github.com/LOLINTERNETZ/vscodeoffline

Not an endorsement, I have never used it, but maybe it is worth looking at.

code-asher avatar Nov 26 '24 00:11 code-asher