Merge "avoid error if bazel intermediates dir already exists"
This commit is contained in:
@@ -371,7 +371,11 @@ func (context *bazelContext) InvokeBazel() error {
|
|||||||
var cqueryOutput string
|
var cqueryOutput string
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
err = os.Mkdir(absolutePath(context.intermediatesDir()), 0777)
|
intermediatesDirPath := absolutePath(context.intermediatesDir())
|
||||||
|
if _, err := os.Stat(intermediatesDirPath); os.IsNotExist(err) {
|
||||||
|
err = os.Mkdir(intermediatesDirPath, 0777)
|
||||||
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user