-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add package to MELPA #120
Comments
I am planning to use the copilot-node-server NPM package (which is used by https://github.com/TerminalFi/LSP-copilot). The primary tasks that must be completed are:
Minor tasks include:
|
There are a few potential issues to consider:
|
Node is already a dependency, which always embeds npm, AFAIK. |
On Ubuntu and Arch, |
If I were to package this for GNU Guix I would be patching this line to something like the following:
Here is some discussion about |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
@zerolfx I noticed this issue was closed and the item is crossed out in the readme. Does this mean there are no plans to add this package to MELPA? |
@artlogic |
Why is this not being distributing via Melpa, because of a Node.js dependency? Not clear but not using standard emacs distribution channels is a mistake. Many packages depended on 3rd-party executables. |
This is definitely something worth prioritizing I think. I'd also be interested to lend a hand. Just a few questions:
|
Sorry for not making it clear. The problem is, before submitting this plugin to MELPA, we may need to get rid of the |
@zerolfx would it not be possible to keep dist in our repo but not include it in the MELPA package recipe. That way we don't have to distribute that through MELPA but the dist folder can be downloaded from the git tag on One thing that gives me pause is that I'm not quite sure what the license is on the We also be pertinent to add a license to |
@emil-vdw , the license topic defimotely deserves a dedicated topic / ticket. |
Alternatively we could ask the user to install |
I think that that is an excellent idea! |
Here's an example of a prominent Emacs package that does exactly that: https://github.com/minad/consult/blob/138aff9bdf48f100d6b0c33acf695cc4aed8346c/consult.el#L273 consult does not distribute |
Aside from any licensing issues, Is there a reason to not bundle
Not a consult user 😅 but I think they do not bundle it because it's not required. |
Hi, The reason is because the developers of See this guix package for tokei.el, for example: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/emacs-xyz.scm?id=master#n28047 The tokei program is referenced below in the https://github.com/nagy/tokei.el/blob/master/tokei.el#L47 The user just needs to make sure that In other words, Does that make sense? |
It's the same reason that a Thanks for that package, BTW. I use it regularly. |
Isn't package.el a dedicated package manager? :) I was looking for a detailed reason, e.g., GitHub's license does not allow it.
Doing it because someone else is doing it is not a good reason. Additional analysis should be applied before making a conclusion. Maybe that was done? Not sure. Which is why I was asking :) With git-link.el you do not install git-link.el to use git. You're using git already. It supplements your existing usage. I assume the case with toki is it's a general purpose executable with 1000s of users outside of Emacs. But may be a licensing issue or distribution size issue. Not sure. People may install toki exclusively for Emacs use but it remains a general purpose executable. In addition toki a standalone executable that does not require a runtime. The proper comparison here is toki to Node.js, and I have not suggested that Node.js be bundled (yet 🤪) copilot-node-server was created exclusively for the editing environment. If you're not using it for Emacs (or vim, I suppose) would you ever have it installed? Likely no. This is the difference. Most Node.js developers use version managers so things will get messy and I guarantee you there will be issues between the version used to install the package and what's in the path, etc... So barriers to entry should be minimum. Currently everything is bundled and all one must do it set the path to node. The idea behind using a package manager is to make using this package easy. Not to add extra steps. So, unless there are legit technical and/or legal reasons, I would bundle it. |
Yes, I would share your dependency question with the MELPA repository maintainers to see what they recommend and how they would approach it. They will have a more comprehensive and detailed explanation that is probably already clearly documented in their packaging guidelines. |
@jgarte Good examples. However, I'd like to highlight a possible difference - a particular version of |
Since:
It seems to me that the best approach would be to handle the loading of the copilot server as a dependency of copilot.el itself automatically (or by exposing some From the perspective of the MELPA repo maintainers I wouldn't think that it matters as long as we are not distributing unlicenced code through their repo. I may be wrong though. |
If the author is interested, I can work on the CI and the package installation. I've helped |
We need to follow the instructions here: https://github.com/melpa/melpa/blob/master/CONTRIBUTING.org
@jcs090218 Sounds good? |
It's been a while. Any progress? |
Hi, is there any update on this? Are we looking for someone to submit the PR to MELPA? |
AFAIK, yes! We are waiting for other maintainers to reply. 🤔 |
@jcs090218 Would you like to open the PR to MELPA? ;() Or should someone else do it? Or should @zerolfx be the one to do it? |
@zerolfx @jcs090218 @emil-vdw et al I've open a PR in order to add the package to the MELPA repos: 🎉 🎉 🎉 |
Oops didn't see #341 till after I opened the PR. What's the game plan? 🦆 I'm not up to date on what's going on with this. |
No worries! You are up to date. We still plan to add to MELPA! I have added this package to my ELPA since I completely control it. :) Thanks for opening the PR to MELPA! 🥳 |
Just opening this issue to track adding copilot.el to MELPA.
@zerolfx
What do we have left to do?
The text was updated successfully, but these errors were encountered: