Ubuntu build failed, so need to revert to an existing stage0
This commit is contained in:
parent
97a01213ac
commit
fc01ea60eb
1 changed files with 8 additions and 8 deletions
|
@ -101,16 +101,16 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
return c.Failed($"Stage 0 directory does not exist: {stage0}");
|
return c.Failed($"Stage 0 directory does not exist: {stage0}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identify the version
|
// // Identify the version
|
||||||
string versionFile = Directory.GetFiles(stage0, ".version", SearchOption.AllDirectories).FirstOrDefault();
|
// string versionFile = Directory.GetFiles(stage0, ".version", SearchOption.AllDirectories).FirstOrDefault();
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(versionFile))
|
// if (string.IsNullOrEmpty(versionFile))
|
||||||
{
|
// {
|
||||||
throw new Exception($"'.version' file not found in '{stage0}' folder");
|
// throw new Exception($"'.version' file not found in '{stage0}' folder");
|
||||||
}
|
// }
|
||||||
|
|
||||||
var version = File.ReadAllLines(versionFile);
|
// var version = File.ReadAllLines(versionFile);
|
||||||
c.Info($"Using Stage 0 Version: {version[1]}");
|
// c.Info($"Using Stage 0 Version: {version[1]}");
|
||||||
|
|
||||||
return c.Success();
|
return c.Success();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue