mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
fix LocalPackage install for relative paths
The vendor dir (here called "dir") is already joined with the CWD in installCommand(). it should not be joined again here. Also adds a logging message to show that a local package was installed.
This commit is contained in:
parent
ccd60c13eb
commit
13568d0b65
2 changed files with 6 additions and 2 deletions
|
|
@ -72,7 +72,8 @@ func installCommand(dir, jsonnetHome string, uris []string, single bool) int {
|
|||
}
|
||||
}
|
||||
|
||||
locked, err := pkg.Ensure(jsonnetFile, filepath.Join(dir, jsonnetHome), lockFile.Dependencies)
|
||||
vendorDir := filepath.Join(dir, jsonnetHome)
|
||||
locked, err := pkg.Ensure(jsonnetFile, vendorDir, lockFile.Dependencies)
|
||||
kingpin.FatalIfError(err, "failed to install packages")
|
||||
|
||||
pkg.CleanLegacyName(jsonnetFile.Dependencies)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue