mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Fix typo in parseDependency name and add tests
This commit is contained in:
parent
95226f7f9b
commit
4630466006
3 changed files with 82 additions and 9 deletions
|
|
@ -46,14 +46,7 @@ func installCommand(dir, jsonnetHome string, paths ...string) int {
|
|||
|
||||
if len(paths) > 0 {
|
||||
for _, path := range paths {
|
||||
// install package specified in command
|
||||
// $ jsonnetpkg install ksonnet git@github.com:ksonnet/ksonnet-lib
|
||||
// $ jsonnetpkg install grafonnet git@github.com:grafana/grafonnet-lib grafonnet
|
||||
// $ jsonnetpkg install github.com/grafana/grafonnet-lib/grafonnet
|
||||
//
|
||||
// github.com/(slug)/(dir)
|
||||
|
||||
newDep := parseDepedency(path)
|
||||
newDep := parseDependency(path)
|
||||
if newDep == nil {
|
||||
kingpin.Errorf("ignoring unrecognized path: %s", path)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue