Create/update global.json with a specific version

Open
#439 1 comment 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 7 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, typescript
Domain
ci-cd, devops

Research direction

The issue does not name implementation files, tests, or entry points. Start by tracing how setup-dotnet selects the requested SDK during GitHub Actions, then identify the existing test coverage for version setup and define done as creating or updating global.json so CI builds with the specified version.

Written by the indexing model from the issue text.

Description

feature request

Description:
This is a bit in reverse of having a global.json as an input. I would like to write a global.json for the version specified so that it is used for building during CI.

Justification:
This would ensure that the version you specify is actually used after it is installed. The use case for this is so that during development you can use the latest version, but when building release versions it uses a fixed version. In particular, this comes in very handy when using workloads (e.g. in our case, macos workload), where compiling for the latest version for release gives errors when trying to consume in a project that is fixed with an older workload version.

Are you willing to submit a PR?
Sure, I could try, if it gets the go-ahead. 😃

Dominant language
TypeScript
Stars
1.2k
Forks
579
Avg merge
6d 4h
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/setup-dotnet

All issues in actions/setup-dotnet

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.