-
Notifications
You must be signed in to change notification settings - Fork 370
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 installation from remote manifests without downloading the bundle #193
Comments
You can easily do
We discussed this in early days and decided not to add more magic and rely on unix conventions. Maybe it’s worth documenting though. |
Well I would argue that the cmd-line hack is less practical. After all, you need to copy/paste two different urls, not just one:
BTW, what do you think about the idea of keeping track of the manifest URLs so that they can be updated during EDIT contrary to my statement above the
|
To test manifests in index repo, I have the refined-github extension, so I can click Copy to copy manifest file contents into clipboard, then I have this alias:
so I just run
We shouldn't go down this path. One-off installations are meant only for dev/test. We provide the --manifest/--archive just to ease local development experience. Once we start supporting multiple indexes, I don't think there will be a real need for non-developers to use --manifest/--archive. |
But that's exactly the point: if the location of plugins is recorded, they are no longer one-off. In a way, this is the multiple indexes approach in the extreme, where every plugin manifest is maintained in its own repository. |
The only problem I see with that is it ends up creating two paths for obtaining manifests. One being a local git repo that’s refreshed directly/indirectly via I think once we figure out #195 and #23, we can revisit this idea. Perhaps there will be a way to configure non-git indexes, and one could be a direct URL reference as you proposed here. /priority awaiting-more-evidence |
@ahmetb's shell alias also works on Linux, for example with
Therefore, there's no need for such a feature. |
I find it annoying that I need to download the file bundle and the manifest when testing a
krew-index
PR. It could be much simpler, ifkrew
would accept remote URIs for the manifest location and if krew would download the file bundle referenced in there. Is there a particular reason whykrew
must not do this?Thinking further,
krew
should keep track of the manifest URIs if not coming from the krew index. Onkrew update
, it should then also download new versions from those URIs and handle those just as any other plugin. This would then allow plugin authors to maintain their own krew manifest within the plugin repo with all the benefits of krew (easy install, updates).WDYT?
The text was updated successfully, but these errors were encountered: