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}");
|
||||
}
|
||||
|
||||
// Identify the version
|
||||
string versionFile = Directory.GetFiles(stage0, ".version", SearchOption.AllDirectories).FirstOrDefault();
|
||||
// // Identify the version
|
||||
// string versionFile = Directory.GetFiles(stage0, ".version", SearchOption.AllDirectories).FirstOrDefault();
|
||||
|
||||
if (string.IsNullOrEmpty(versionFile))
|
||||
{
|
||||
throw new Exception($"'.version' file not found in '{stage0}' folder");
|
||||
}
|
||||
// if (string.IsNullOrEmpty(versionFile))
|
||||
// {
|
||||
// throw new Exception($"'.version' file not found in '{stage0}' folder");
|
||||
// }
|
||||
|
||||
var version = File.ReadAllLines(versionFile);
|
||||
c.Info($"Using Stage 0 Version: {version[1]}");
|
||||
// var version = File.ReadAllLines(versionFile);
|
||||
// c.Info($"Using Stage 0 Version: {version[1]}");
|
||||
|
||||
return c.Success();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue