fix: fail on invalid URI

This commit is contained in:
sh0rez 2019-10-29 22:35:59 +01:00
parent 61fd099392
commit 4de4096004
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1

View file

@ -48,6 +48,9 @@ func installCommand(dir, jsonnetHome string, uris []string) int {
for _, u := range uris {
d := parseDependency(dir, u)
if d == nil {
kingpin.Fatalf("Unable to parse package URI `%s`", u)
}
if !depEqual(jsonnetFile.Dependencies[d.Name], *d) {
// the dep passed on the cli is different from the jsonnetFile