fmt.Fprintf(os.Stderr,"Old symlink_forest_version was %q, current is %q. Cleaning symlink forest before recreating...\n",versionFileString,symlinkForestVersionString)
// Returns the mtime of the soong_build binary to determine whether we should
// force symlink_forest to re-execute
funcgetSoongBuildMTime()(int64,error){
binaryPath,err:=os.Executable()
iferr!=nil{
return0,err
}
err=os.RemoveAll(shared.JoinPath(topdir,forest))
info,err:=os.Stat(binaryPath)
iferr!=nil{
returnerr
return0,err
}
returninfo.ModTime().UnixMilli(),nil
}
returnnil
// cleanSymlinkForest will remove the whole symlink forest directory