Skip to content

@v4 doesn't install the latest cli #621

Closed
@taspeotis

Description

@taspeotis

Description:

// Use latest stable version
.useArguments(IS_WINDOWS ? '-Channel' : '--channel', 'LTS')

This says it unconditionally installs "the latest stable version" but it doesn't, it installs LTS (8). STS would be the latest stable version (9).

Task version:

v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

Run the task, although note whatever version of .NET you ask for is irrelevant, this is about the step that unconditionally installed the dotnet runtime to get at dotnet.

- uses: actions/setup-dotnet@v4
  with:
    dotnet-version: '9.x'

Expected behavior:

.NET 9 runtime is installed before the user specified version.

Actual behavior:

.NET 8 runtime is installed before the user specified version.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions