mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Fix install without args
This commit is contained in:
parent
07445571e6
commit
7959a767ed
1 changed files with 32 additions and 31 deletions
|
|
@ -106,6 +106,7 @@ func installCommand(jsonnetHome string, urls ...*url.URL) int {
|
||||||
kingpin.Fatalf("failed to load jsonnetfile: %v", err)
|
kingpin.Fatalf("failed to load jsonnetfile: %v", err)
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(urls) > 0 {
|
if len(urls) > 0 {
|
||||||
for _, url := range urls {
|
for _, url := range urls {
|
||||||
// install package specified in command
|
// install package specified in command
|
||||||
|
|
@ -181,6 +182,7 @@ func installCommand(jsonnetHome string, urls ...*url.URL) int {
|
||||||
m.Dependencies = newDeps
|
m.Dependencies = newDeps
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
srcPath := filepath.Join(jsonnetHome)
|
srcPath := filepath.Join(jsonnetHome)
|
||||||
err = os.MkdirAll(srcPath, os.ModePerm)
|
err = os.MkdirAll(srcPath, os.ModePerm)
|
||||||
|
|
@ -218,7 +220,6 @@ func installCommand(jsonnetHome string, urls ...*url.URL) int {
|
||||||
kingpin.Fatalf("failed to write lock file: %v", err)
|
kingpin.Fatalf("failed to write lock file: %v", err)
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue