Comments (7)
@joefitzgerald These two packages have different purposes, they share one purpose however, to install dependencies. This package accepts an array, which makes sense because we don't want to enforce versions of packages. That package accepts an object with version that do nothing at the moment (but maybe some time in the future?). This package's install method accepts a package name and does nothing if they are installed already, according to README of that package, it forces a re-install (which is not what we all want).
If you depend on multiple packages, this package provides a nicer progress bar and a notification if you're depending on one, but there's no concept of such a thing in that package. This package provides a promise-based API that resolves when all of the dependencies have been installed. but in that package, You have no idea if they have been installed or if one of the installation has failed.
Also, the purpose of that package is to install the dependencies, and then require them. It might be useful for packages that extend the tree-view and similar ones, but it fails to be the best one to use when depending your package on linter.
They have quite a lot of differences, and because that package is only a single file, I said why not write our own and maintain it ourselves?
from package-deps.
So you're looking for package sets then: atom/apm#385. I'm not convinced this is sufficiently different from anything else, or that you're adding novel features. Might it be more useful to contribute to something that exists already?
You certainly don't need to take my advice though, this is just a suggestion.
from package-deps.
@joefitzgerald I think so. There's no documentation for package sets so I can't exactly tell but if package-sets mean that you install linter-* and linter gets installed automatically then Yes. I would love to discontinue my package when package-sets arrive.
I do have Contribute to Atom Core
on my Todo list but I am a bit busy these days so won't have enough time to examine a codebase I am not familiar with.
from package-deps.
Closing but can keep discussing.
from package-deps.
From my understanding of the two sets of code they do essentially the same thing. atom-package-dependencies
does not force re-installation, unlike what it's documentation claims.
The primary differences that I can see between the two packages is that atom-package-dependencies
calls apm ls -b
and parses the results to see what packages are currently installed, while this one queries the atom
API to check that. The error checking in this package is slightly more robust as it checks for the β
mark, while the other just checks that there was any output at all.
I'm sure there are things that I'm missing, but that's what I saw while quickly looking over the code.
from package-deps.
@steelbrain The docs for package-sets really don't exist because it's work that is still ongoing. Joe and some other folks were interested in it so we hashed out the details in a chat over the course of a week or two. The PR Joe linked above is worth reading in case the concepts suggested there meet your needs - since it's something that we're already interested in having in core, it might be worth taking a look before you charge fully into your own package set implementation that might get superseded by core in short order. There might be some info that didn't make it from chat into that PR but @joefitzgerald can def clarify anything over there if you have questions.
from package-deps.
@thedaniel As soon as that PR lands, I am happy to discontinue this. It's just that we get tons and tons of people who have installed linter-*
and doesn't have linter
, this package is a super simple one, nothing complex. We decided on our google hangout that we're gonna build this package until that feature arrives in the Core.
from package-deps.
Related Issues (20)
- maximum required version HOT 4
- Cannot configure package-deps to install package dependancies. HOT 2
- Installing package with dependencies fails on Windows HOT 11
- showPrompt fails HOT 7
- `packageDeps.install()` causes exception "querySelector is not a function" HOT 2
- Stop enabling the notifications package
- Optional dependencies HOT 2
- Can't bring up the integration HOT 7
- An in-range update of semver is breaking the build π¨ HOT 1
- Doesnβt prompt to install sub-dependencies
- Move package-deps to `apm` HOT 3
- Allow specifying a `package.json` for installation without Atom running
- 'patch-package' is not recognized as an internal or external command HOT 2
- Bring option for setting the prompt to off HOT 3
- packages installation for node fails on windows
- Cannot read property 'length' of undefined at lib/index.js:930:26 HOT 5
- Error during showing installation progress to user
- Dependencies fail to install when there is a space in Atom's install path HOT 2
- atom-ide-base main tests fail to activate the packages HOT 1
- Doesn't Recognize Github Format HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from package-deps.