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

[BUG]: UseDotNetV2 does not use pre-installed versions #19019

Open
1 of 4 tasks
mikeharder opened this issue Sep 25, 2023 · 3 comments
Open
1 of 4 tasks

[BUG]: UseDotNetV2 does not use pre-installed versions #19019

mikeharder opened this issue Sep 25, 2023 · 3 comments

Comments

@mikeharder
Copy link

mikeharder commented Sep 25, 2023

Task name

UseDotNetV2

Task version

2.228.0

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

All

Task log

# YML
steps:
  - script: dotnet --info

  - task: UseDotNet@2
    inputs:
      version: 6.x

  - task: UseDotNet@2
    inputs:
      version: 7.x

Relevant log output

# Output
$ dotnet --info
.NET SDKs installed:
  6.0.414 [/usr/share/dotnet/sdk]
  7.0.111 [/usr/share/dotnet/sdk]
  7.0.203 [/usr/share/dotnet/sdk]
  7.0.308 [/usr/share/dotnet/sdk]
  7.0.401 [/usr/share/dotnet/sdk]

Tool to install: .NET Core sdk version 6.x.
Found version 6.0.414 in channel 6.0 for user specified version spec: 6.x
get-os-distro: Error: Distribution specific OS name and version could not be detected: UName = Linux
Version 6.0.414 was not found in cache.

Tool to install: .NET Core sdk version 7.x.
Found version 7.0.401 in channel 7.0 for user specified version spec: 7.x
get-os-distro: Error: Distribution specific OS name and version could not be detected: UName = Linux
Version 7.0.401 was not found in cache.

Aditional info

Command `dotnet --info` confirms the requested versions are installed, but the task is not installing them.

Related: actions/runner-images#8387

Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Apr 13, 2024
@Frulfump
Copy link

Frulfump commented Apr 13, 2024

Still an issue. PR that potentially fixes this issue #19415. Also this issue is probably a duplicate of #15020

@github-actions github-actions bot removed the stale label Apr 13, 2024
@sanan-wow
Copy link

Still an issue and we hope this can get fixed too. Our pipelines intermittently fail while this task is trying to download dotnet 6, while build agents already have dotnet 6. This task needs and if else condition to check the local pre-installed version and use them instead of trying to download and fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants