소스 검색

common/compiler: fix path problem with filepath.Glob on Windows

Rémy Roy 9 년 전
부모
커밋
de1831b6e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/compiler/solidity.go

+ 1 - 1
common/compiler/solidity.go

@@ -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()))
 	}
 	// Sanity check that something was actually built
-	matches, _ := filepath.Glob(wd + "/*\\.bin*")
+	matches, _ := filepath.Glob(filepath.Join(wd, "*.bin*"))
 	if len(matches) < 1 {
 		return nil, fmt.Errorf("solc: no build results found")
 	}