feat: rewrite install procedure

rewrites the installation of packages from scratch to solve several issues with
the existing implementation:

- does not need to choose between lockfile and jsonnetfile anymore. The
jsonnetfile what to be installed, while the lockfile also has versions and
checksums of all packages, even nested ones.
- the lockfile is regenerated on every run, preserving the locked values
- downloaded packages are hashed using sha256 to make sure we receive what we
expect. If files on the local disk are modified, they are downloaded again.
This commit is contained in:
sh0rez 2019-10-16 16:34:53 +02:00
parent 71938456ae
commit 36311f1601
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
5 changed files with 129 additions and 155 deletions

View file

@ -22,6 +22,7 @@ type Dependency struct {
Name string `json:"name"`
Source Source `json:"source"`
Version string `json:"version"`
Sum string `json:"sum,omitempty"`
DepSource string `json:"-"`
}