forked from cerc-io/plugeth
common/compiler: fix path problem with filepath.Glob on Windows
This commit is contained in:
parent
d45f01d5f7
commit
de1831b6e9
@ -157,7 +157,7 @@ func (sol *Solidity) Compile(source string) (map[string]*Contract, error) {
|
|||||||
return nil, fmt.Errorf("solc: %v\n%s", err, string(stderr.Bytes()))
|
return nil, fmt.Errorf("solc: %v\n%s", err, string(stderr.Bytes()))
|
||||||
}
|
}
|
||||||
// Sanity check that something was actually built
|
// Sanity check that something was actually built
|
||||||
matches, _ := filepath.Glob(wd + "/*\\.bin*")
|
matches, _ := filepath.Glob(filepath.Join(wd, "*.bin*"))
|
||||||
if len(matches) < 1 {
|
if len(matches) < 1 {
|
||||||
return nil, fmt.Errorf("solc: no build results found")
|
return nil, fmt.Errorf("solc: no build results found")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user