mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
fix: fail on invalid URI
This commit is contained in:
parent
61fd099392
commit
4de4096004
1 changed files with 3 additions and 0 deletions
|
|
@ -48,6 +48,9 @@ func installCommand(dir, jsonnetHome string, uris []string) int {
|
||||||
|
|
||||||
for _, u := range uris {
|
for _, u := range uris {
|
||||||
d := parseDependency(dir, u)
|
d := parseDependency(dir, u)
|
||||||
|
if d == nil {
|
||||||
|
kingpin.Fatalf("Unable to parse package URI `%s`", u)
|
||||||
|
}
|
||||||
|
|
||||||
if !depEqual(jsonnetFile.Dependencies[d.Name], *d) {
|
if !depEqual(jsonnetFile.Dependencies[d.Name], *d) {
|
||||||
// the dep passed on the cli is different from the jsonnetFile
|
// the dep passed on the cli is different from the jsonnetFile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue