Skip to content

Conversation

@mthalman
Copy link
Member

The license scanning pipeline started failing a few days after the .NET 8 release in the release/8.0.1xx branch with the following error when attempting to run the tests:

/mnt/vss/_work/_temp/b1e87c0a-be03-4c81-9479-04ec3419f26c.sh: line 1: /mnt/vss/_work/1/s/.dotnet/dotnet: No such file or directory

The step which installs the .NET CLI was essentially a no-op, not installing it at all. This behavior began as a result of the agent version being updated to include .NET 8 preinstalled. The behavior of the eng/common/tools.sh script that is used to install the .NET CLI was detecting this already installed version because it matched the version specified in global.json. Because this installation was skipped, nothing existed at the expected installation location where the test execution was targeting.

The solution to this is to set a flag which causes the installation to skip the check for a matching installation.

@mthalman mthalman requested a review from a team as a code owner November 29, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants