mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
fix: windows enhancements (#110)
* use filepath to check for known packages this fixes an issue using windows. without this patch, jb would delete the folder after installation since the path is not known * reduce temp directory length by hashing using this hash it is harder to reach the windows limit for filenames and directories * further reduce temp dir length * do not build binaries for windows/amd*
This commit is contained in:
parent
251792fbb2
commit
9e88f6d38d
3 changed files with 7 additions and 1 deletions
|
|
@ -200,6 +200,7 @@ func checkLegacyNameTaken(legacyName string, pkgName string) (bool, error) {
|
|||
}
|
||||
|
||||
func known(deps map[string]deps.Dependency, p string) bool {
|
||||
p = filepath.ToSlash(p)
|
||||
for _, d := range deps {
|
||||
k := d.Name()
|
||||
if strings.HasPrefix(p, k) || strings.HasPrefix(k, p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue