Skip to content

Commit f1d5410

Browse files
saibulususaibulusu
andauthored
Removing g++ and gcov alternatives in CompilerInstallation (#660)
* Removing g++ and gcov alternatives in case these are alternative masters. * upversion --------- Co-authored-by: saibulusu <saibulusu@microsoft.com>
1 parent 600d374 commit f1d5410

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.2
1+
3.0.3

src/VirtualClient/VirtualClient.Dependencies.UnitTests/CompilerInstallationTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public async Task CompilerInstallationRunsTheExpectedWorkloadCommandInLinuxForGc
123123
{
124124
"sudo update-alternatives --remove-all gcc",
125125
"sudo update-alternatives --remove-all gfortran",
126+
"sudo update-alternatives --remove-all g++",
127+
"sudo update-alternatives --remove-all gcov",
126128
"sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y",
127129
"sudo apt update",
128130
"sudo apt install build-essential gcc-123 g++-123 gfortran-123 -y --quiet",

src/VirtualClient/VirtualClient.Dependencies/CompilerInstallation.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ private async Task RemoveAlternativesAsync(EventContext telemetryContext, Cancel
287287
string[] packages =
288288
{
289289
"gcc",
290-
"gfortran"
290+
"gfortran",
291+
"g++",
292+
"gcov"
291293
};
292294

293295
// due to the following error:

0 commit comments

Comments
 (0)