feat: minor improvements

- allow to install pkg that is already locked
- clean unknown files from vendor
- correctly handle checksums and locked versions (was accidentally ignoring
- these before)
This commit is contained in:
sh0rez 2019-10-16 20:38:00 +02:00
parent cc1d7ea3b8
commit 0588b89c07
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
3 changed files with 95 additions and 18 deletions

View file

@ -21,6 +21,7 @@ import (
"path/filepath"
"regexp"
"github.com/fatih/color"
"github.com/pkg/errors"
kingpin "gopkg.in/alecthomas/kingpin.v2"
@ -54,6 +55,8 @@ func Main() int {
JsonnetHome string
}{}
color.Output = color.Error
a := kingpin.New(filepath.Base(os.Args[0]), "A jsonnet package manager")
a.HelpFlag.Short('h')