Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset repo tools manifest path in CI to fix restore errors #33871

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Mar 20, 2020

An updated SDK with the net5.0 tfm change seems to break dotnet repo
tool restore, presumably because multiple compatible tfms are found.
Working around this by unsetting the repo tools manifest file path until the
issue is fixed.

Fixes #33837

cc @stephentoub

eng/Tools.props Outdated
@@ -2,6 +2,9 @@
<PropertyGroup>
<MSBuildTreatWarningsAsErrors>false</MSBuildTreatWarningsAsErrors>
<EnableAnalyzers>true</EnableAnalyzers>
<!-- Unset the repo tool manifest property in CI as we don't use repo tools there anyway,
until https://github.com/dotnet/sdk/issues/10938 is fixed. -->
<_RepoToolManifest />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says in CI, however, this operation is not conditioned to CI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lol fixed.

An updated SDK with the net5.0 tfm change seems to break dotnet repo
tool restore, presumably because multiple compatible tfms are found.
Working around this by deleting the repo tools manifest file until the
issue is fixed.
@ViktorHofer
Copy link
Member Author

@ViktorHofer
Copy link
Member Author

Could not get the latest source version for repository dotnet/runtime hosted on https://github.com/ using ref 337576f. GitHub reported the error, "Bad credentials"

cc @dotnet/dnceng

@ViktorHofer ViktorHofer changed the title Delete repo tools manifest in CI to fix CI errors Unset repo tools manifest path in CI to fix restore errors Mar 20, 2020
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 20, 2020

@dotnet/runtime-infrastructure Feel free to merge after CI has completed. I believe the current failures are all unrelated. I'm logging off now but can take a look tomorrow if the PR isn't merged by then.

@safern safern merged commit 97d1f96 into master Mar 20, 2020
@safern safern deleted the RepoToolsSdkFix branch March 20, 2020 22:51
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI builds failing with restore error
3 participants