GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add fallback install directory when default is not writable by v-priyagupta108 · Pull Request #785 · actions/setup-dotnet

Conversation

@v-priyagupta108

@v-priyagupta108 v-priyagupta108 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Description:
Fall back to $HOME/.dotnet when the default install dir is not writable.

On self-hosted, larger and containerized runners the platform default (/usr/share/dotnet, C:\Program Files\dotnet) is often not writable and the action fails with a permission error. Resolution order is now:

  1. DOTNET_INSTALL_DIR, when set — always honored, never probed
  2. the platform default, when writable
  3. $HOME/.dotnet, with a warning

Related issue:
#518
#360
#486

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@v-priyagupta108
Add fallback install directory when default is not writable
f8dc6db
@v-priyagupta108
v-priyagupta108 requested a review from a team as a code owner September 29, 2026 09:52
Copilot AI balanced review requested due to automatic review settings September 29, 2026 09:52
Copilot started reviewing on behalf of v-priyagupta108 September 29, 2026 09:53
View session
Copilot AI reviewed Sep 29, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The macOS early return skips the promised warning when its home-based default is not writable.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
  • Medium severity Warn when shared .NET install path is not writable · New
What changed in this PR

Adds a writable home-directory fallback for .NET installation on restricted runners.

Changes:

  • Resolves install paths using override, platform default, then home fallback.
  • Adds writability probes, warnings, tests, and documentation.
  • Defers environment setup until installation begins.
File Description
src/​installer.ts Implements fallback path resolution.
README.md Documents resolution order and warnings.
dist/​setup/​index.js Updates the bundled action.
__tests__/​installer.test.ts Adds fallback-resolution tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/installer.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@v-priyagupta108
Refactor macOS install directory handling to warn when default is not…
771c3ef
… writable
@v-priyagupta108 v-priyagupta108 self-assigned this Sep 29, 2026
This was referenced Oct 1, 2026
Fallback to different installation directory if /usr/share/dotnet doesn't available due to permissions #518
Closed
Use non-root install by default #486
Closed
Default installation fails on ARC managed runners #360
Closed
@v-priyagupta108
v-priyagupta108 requested a balanced review from Copilot October 5, 2026 05:34
Copilot started reviewing on behalf of v-priyagupta108 October 5, 2026 05:34
View session
Copilot AI reviewed Oct 5, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation matches the stated resolution order and includes comprehensive coverage of relevant filesystem edge cases.

Review effort: Balanced
Findings: None

Resolved since last review (1)
  • Medium severity Warn when shared .NET install path is not writable

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Frulfump Frulfump mentioned this pull request Oct 22, 2026
Use GitHub Copilot (or another agent) for issue triage and PR review and implementation #701
Open
@v-priyagupta108 v-priyagupta108 mentioned this pull request Oct 22, 2026
Explicity set installation path #498
Closed
2 tasks
@v-priyagupta108
Merge origin/main into fallback-install-directory
8a24ec3
v-priya-kinthali
v-priya-kinthali approved these changes Oct 29, 2026
View reviewed changes
v-gowridurgad
v-gowridurgad approved these changes Oct 29, 2026
View reviewed changes
v-jitenderpalsingh
v-jitenderpalsingh approved these changes Oct 29, 2026
View reviewed changes
v-HarithaVattikuti
v-HarithaVattikuti approved these changes Oct 30, 2026
View reviewed changes
@v-HarithaVattikuti
v-HarithaVattikuti merged commit 6ec5c6b into actions:main Oct 30, 2026
123 checks passed

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@v-HarithaVattikuti v-HarithaVattikuti v-HarithaVattikuti approved these changes
@v-priya-kinthali v-priya-kinthali v-priya-kinthali approved these changes
@v-gowridurgad v-gowridurgad v-gowridurgad approved these changes
@v-jitenderpalsingh v-jitenderpalsingh v-jitenderpalsingh approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@v-priyagupta108 v-priyagupta108

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@v-priyagupta108 @v-HarithaVattikuti @v-priya-kinthali @v-gowridurgad @v-jitenderpalsingh
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.