Skip to content

Fix internal tool restore in official build and re-enable #1024

Closed

Description

@dagood

I saw this error with the CoreCLR and Libraries "Restore internal tools" steps while trying to develop official builds:

Build FAILED. 
 
 "/Users/runner/runners/2.160.1/work/1/s/eng/common/internal/Tools.csproj" (Restore target) (1) -> 
 (Restore target) -> 
 /Users/runner/runners/2.160.1/work/1/s/.dotnet/sdk/5.0.100-alpha1-015772/NuGet.targets(123,5): error : Value cannot be null. (Parameter 'folderName') [/Users/runner/runners/2.160.1/work/1/s/eng/common/internal/Tools.csproj] 

#1016 removes internal tooling to unblock the official build, but this needs to be fixed and re-enabled.

# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# # IBCMerge is currently Windows-only and x86/x64-only
# - ${{ if and(eq(parameters.osGroup, 'Windows_NT'), or(eq(parameters.archType, 'x64'), eq(parameters.archType, 'x86'))) }}:
# - name: ibcOptimizeArg
# value: '-ibcoptimize'

# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# # Install internal tools on official builds
# # Since our internal tools are behind an authenticated feed,
# # we need to use the DotNetCli AzDO task to restore from the feed using a service connection.
# # We can't do this from within the build, so we need to do this as a separate step.
# - ${{ if and(and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')), eq(parameters.osGroup, 'Windows_NT')) }}:
# - task: DotNetCoreInstaller@0
# inputs:
# packageType: 'sdk'
# version: '2.1.503'
# - task: DotNetCoreCLI@2
# displayName: Restore internal tools
# inputs:
# command: restore
# feedsToUse: config
# projects: '$(Build.SourcesDirectory)/eng/common/internal/Tools.csproj'
# nugetConfigPath: 'eng/internal/NuGet.config'
# restoreDirectory: '$(Build.SourcesDirectory)\.packages'
# verbosityRestore: 'normal'
# externalFeedCredentials: 'dotnet-core-internal-tooling'

# TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024
# - ${{ if eq(parameters.isOfficialBuild, true) }}:
# - task: DotNetCoreCLI@2
# displayName: Restore internal tools
# condition: and(succeeded(), ne(variables['_skipRestoreInternalTools'], 'true'))
# inputs:
# command: restore
# feedsToUse: config
# projects: 'eng/common/internal/Tools.csproj'
# nugetConfigPath: 'eng/internal/NuGet.config'
# restoreDirectory: '$(Build.SourcesDirectory)\.packages'
# verbosityRestore: 'normal'
# externalFeedCredentials: 'dotnet-core-internal-tooling'

<!-- TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 -->
<!-- <UsingToolIbcOptimization>true</UsingToolIbcOptimization> -->

Activity

  1. added
    untriaged
    on Dec 18, 2019
  2. self-assigned this
    on Jan 17, 2020
  3. safern commented on Jan 17, 2020

    @safern
    Member

    Self assigned as I set-up this in corefx and have some experience with internal restore. Will give it a shot.

  4. ghost locked as resolved and limited conversation to collaborators on Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Infrastructureuntriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions