mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2026-02-02 17:35:09 +01:00
Create LocalSource as type for local dependencies
This commit is contained in:
parent
6ee790d911
commit
07801936c0
6 changed files with 71 additions and 23 deletions
|
|
@ -226,8 +226,6 @@ func parseLocalDependency(p string) *spec.Dependency {
|
|||
|
||||
info, err := os.Stat(clean)
|
||||
if err != nil {
|
||||
wd, _ := os.Getwd()
|
||||
fmt.Println(err, wd)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -238,11 +236,10 @@ func parseLocalDependency(p string) *spec.Dependency {
|
|||
return &spec.Dependency{
|
||||
Name: info.Name(),
|
||||
Source: spec.Source{
|
||||
GitSource: &spec.GitSource{
|
||||
Remote: ".",
|
||||
Subdir: clean,
|
||||
LocalSource: &spec.LocalSource{
|
||||
Directory: clean,
|
||||
},
|
||||
},
|
||||
Version: ".",
|
||||
Version: "",
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue