Merge pull request #1103 from samalba/fix-windows-dir-encoding
state: fixed input dir encoding on windows
This commit is contained in:
commit
23d488d462
@ -119,9 +119,14 @@ func (dir dirInput) Compile(_ string, state *State) (*compiler.Value, error) {
|
|||||||
return nil, fmt.Errorf("%q dir doesn't exist", dir.Path)
|
return nil, fmt.Errorf("%q dir doesn't exist", dir.Path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dirPath, err := json.Marshal(p)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
llb := fmt.Sprintf(
|
llb := fmt.Sprintf(
|
||||||
`#up: [{do:"local",dir:"%s", include:%s, exclude:%s}]`,
|
`#up: [{do:"local",dir:%s, include:%s, exclude:%s}]`,
|
||||||
p,
|
dirPath,
|
||||||
includeLLB,
|
includeLLB,
|
||||||
excludeLLB,
|
excludeLLB,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user