-
Notifications
You must be signed in to change notification settings - Fork 2
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
[RFH] how to install submodules? #4
Comments
I think I'm choosing the first option |
When I ended up implementing my own js ebuilds, I went with the second option, which has now been added to this repository as The observed cons of this option are:
Now, saying this, I still prefer this option as it is more in-line with how the js ecosystem works. from https://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation/
But further, the page above talks about using I think this is a compromise between options 1 & 2. Globally install bulky & stable packages to be reused everywhere, manually This compromise removes or lessens the This is basically the static vs dynamic linking argument all over again. |
Some packages depends on submodules not packaged elsewhere but as a folder in the main project (e.g.
language-*
fromatom
)Here are 3 ways of packaging I've been thinking of:
one ebuild for submodule
pros: no need to change the eclass
cons: ebuild version and tarball version aren't the same, no way to check for updates
let npm manage them
pros: only one ebuild
cons: difficult to put the documentation where it should be, the eclass must take care of
package.json
and list only the submodules in it before calling npm (currently the eclass clear thedependencies
insidepackage.json
). Complex bash/jq scripting neededmanually install the submodules
pros: one ebuild only
cons: Complex bash scripting needed, in the ebuild we need to
cd module/folder
then run the configure compile install functionsThe text was updated successfully, but these errors were encountered: