feat(install): skip dependencies

Allows `installing` a package without pulling dependencies of that
package. This comes in handy when having multiple directories on
`JPATH`, which overlay each other.

Because dependencies may be already present at lesser ranked import
paths, it's not required to pull them, when only needing to bump a
single one.
This commit is contained in:
sh0rez 2020-04-20 21:33:11 +02:00
parent d84e1d760d
commit fd5f7f108a
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
5 changed files with 24 additions and 4 deletions

View file

@ -22,6 +22,7 @@ type Dependency struct {
Source Source `json:"source"`
Version string `json:"version"`
Sum string `json:"sum,omitempty"`
Single bool `json:"single,omitempty"`
// older schema used to have `name`. We still need that data for
// `LegacyName`