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

feature: Allow downloading from an archive instead of git #780

Closed
1 task done
4e554c4c opened this issue May 4, 2023 · 3 comments
Closed
1 task done

feature: Allow downloading from an archive instead of git #780

4e554c4c opened this issue May 4, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@4e554c4c
Copy link

4e554c4c commented May 4, 2023

Did you check the docs?

  • I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.

As a neovim remote plugin developer, I would like to provide a plugin that is written in a language that is not vimscript or lua. This language must be compiled to an executable before it can be used by nvim.
I would like to distribute an archive with artifacts already built that is not my source directory.

Describe the solution you'd like

I would prefer a method to download an archive (e.g. zip or tar) from a URL (e.g. github releases) and then install a plugin from that archive as an alternative to installing directly through git.
E.g. this could be specified as

{ archive = "https://github.com/my/repo/releases/latest/download/release.zip"}

Describe alternatives you've considered

Artifacts could be placed in a separate branch, and still downloaded using git. However, this defeats the purpose of using git, since it would be difficult to preserve history and download large binary blobs.
Users could compile every release, but this is a waste of user resources and requires every user to have a build system for every remote plugin.

Additional context

Packer discussion (empty): wbthomason/packer.nvim#1210
Original issue: 4e554c4c/darkman.nvim#1

@4e554c4c 4e554c4c added the enhancement New feature or request label May 4, 2023
@folke
Copy link
Owner

folke commented May 4, 2023

This is a very specific use-case which is not general enough to add to lazy.
You can always provide a build step for your users that then downloads the artifacts as part of your code

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2023
@4e554c4c
Copy link
Author

4e554c4c commented May 4, 2023

I don't think this is incredibly specific
remote plugins are built into neovim and are written in various languages (as they can't always be lua or vimscript).

I believe it would be far more scalable to implement the ability to download archives in a plugin manager than reinvent it in every remote plugin

@folke
Copy link
Owner

folke commented May 4, 2023

It is very specific, since you are the first person asking for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants