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

[main] Update dependencies from dotnet/arcade #4750

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Jun 25, 2021

This pull request updates the following dependencies

From https://github.com/dotnet/arcade

  • Subscription: 840bf684-917a-4879-f62c-08d8e93a0c51
  • Build: 20210628.2
  • Date Produced: 6/28/2021 2:34 PM
  • Commit: 685c1a4fa207d81e881a402a32ffa1c0fb191b42
  • Branch: refs/heads/main

…624.3

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.Helix.Sdk
 From Version 6.0.0-beta.21323.1 -> To Version 6.0.0-beta.21324.3
@dotnet-maestro dotnet-maestro bot requested a review from a team as a code owner June 25, 2021 12:20
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 25, 2021
@ghost ghost requested review from fabiant3, ryalanms and SamBent June 25, 2021 12:20
@ryalanms
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ryalanms
Copy link
Member

@mmitche: This script update is causing the build to fail. Could you take a look?

https://github.com/dotnet/wpf/pull/4750/files#diff-72b8f8e899b94872c6ead31fd06ec109da15bcb9ad2af6e78103d6763a31c637R381

(NETCORE_ENGINEERING_TELEMETRY=InitializeToolset) The property 'Prefer64bit' cannot be found on this object. Verify that the property exists.

eng/common/tools.ps1

  $local:BinFolder = Join-Path $vsInstallDir "MSBuild\$msbuildVersionDir\Bin"
  $local:Prefer64bit = if ($vsRequirements.Prefer64bit) { $vsRequirements.Prefer64bit } else { $false }
  if ($local:Prefer64bit -and (Test-Path(Join-Path $local:BinFolder "amd64"))) {
    $global:_MSBuildExe = Join-Path $local:BinFolder "amd64\msbuild.exe"
  } else {
    $global:_MSBuildExe = Join-Path $local:BinFolder "msbuild.exe"
  }

  return $global:_MSBuildExe

@mmitche
Copy link
Member

mmitche commented Jun 25, 2021

@dougbu Looks like that msbuild change broke something.

@dougbu
Copy link
Member

dougbu commented Jun 25, 2021

Looks like that msbuild change broke something.

That's so weird. $GlobalJson.tools.vs exists in the global.json file and therefore $vsRequirements shouldn't be $null. And if ($vsRequirements.Prefer64bit) { $vsRequirements.Prefer64bit } else { $false } is very similar to if ($vsRequirements.version) { $vsRequirements.version } else { $vsMinVersionReqdStr } earlier in the same function. I don't get it but will try to reproduce the issue locally after my (late) lunch…

@mmitche
Copy link
Member

mmitche commented Jun 25, 2021

Looks like that msbuild change broke something.

That's so weird. $GlobalJson.tools.vs exists in the global.json file and therefore $vsRequirements shouldn't be $null. And if ($vsRequirements.Prefer64bit) { $vsRequirements.Prefer64bit } else { $false } is very similar to if ($vsRequirements.version) { $vsRequirements.version } else { $vsMinVersionReqdStr } earlier in the same function. I don't get it but will try to reproduce the issue locally after my (late) lunch…

Thanks!

return $global:_MSBuildExe = Join-Path $vsInstallDir "MSBuild\$msbuildVersionDir\Bin\msbuild.exe"

$local:BinFolder = Join-Path $vsInstallDir "MSBuild\$msbuildVersionDir\Bin"
$local:Prefer64bit = if ($vsRequirements.Prefer64bit) { $vsRequirements.Prefer64bit } else { $false }
Copy link
Member

Choose a reason for hiding this comment

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

Found the problem that's on this line. All goes back to set-strictmode -version 2.0 which exists in the release/5.0 and main copies of eng/common/tools.ps1 but not the release/3.x one. See https://github.com/dotnet/wpf/pull/4750/files#diff-72b8f8e899b94872c6ead31fd06ec109da15bcb9ad2af6e78103d6763a31c637R59

Quick fix

Suggested change
$local:Prefer64bit = if ($vsRequirements.Prefer64bit) { $vsRequirements.Prefer64bit } else { $false }
$local:Prefer64bit = if (Get-Member -InputObject $vsRequirements -Name 'Prefer64bit') { $vsRequirements.Prefer64bit } else { $false }

Tested this locally in dotnet/aspnetcore with same Arcade version

Copy link
Member

Choose a reason for hiding this comment

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

If this is urgent, take my suggestion even though this is an eng/common/ file. Wait for another Arcade build and validation if not.

Copy link
Member

Choose a reason for hiding this comment

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

Fix for 'main' coming in dotnet/arcade#7564 @mmitche has already approved it (you are now pre-approved 😄)

…628.2

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.Helix.Sdk
 From Version 6.0.0-beta.21323.1 -> To Version 6.0.0-beta.21328.2
@dotnet-maestro dotnet-maestro bot merged commit d3bbe01 into main Jun 29, 2021
@dotnet-maestro dotnet-maestro bot deleted the darc-main-8a8136c1-1867-4bc0-8b4f-9e040d168d6b branch June 29, 2021 20:24
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants