Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Idea for ability to optionally override default modules and scripts install path - Duscussion and contribution is welcome!#1673

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
o-l-a-v wants to merge63 commits intoPowerShell:master
base:master
Choose a base branch
Loading
fromo-l-a-v:install-path-override

Conversation

@o-l-a-v
Copy link
Contributor

@o-l-a-vo-l-a-v commentedJul 13, 2024
edited
Loading

PR Summary

What

I'm experimenting with a way to override PSResourceGet install path for modules and scripts, suggested in my comment#1494 (comment).

This PR already got the basic logic working for getting the path override if present! 🥳

image

Todo

  • Maintainers confirm this is something they want, else more work is for nothing.
  • Get env variablePSResourceGetInstallPathOverride if present and use it instead of default paths.
  • Create cmdletSet-PSResourceInstallPathOverride -Path <path> -Scope <CurrentUser|AllUsers>.
    • Barebone functionality, as in setPSResourceGetInstallPathOverride and add it toPSModulePath if not already there.
    • -WhatIf
    • Check if running as admin and scope is current user?
    • ^ Add "-Force" or "-IgnorePermissionsCheck" switch?
  • ? Create cmdletGet-PSResourceGetInstallPathOverride ?
  • ? Create cmdletRemove-PSResourceGetInstallPathOverride ?
  • Make sureGet-PSResource searches for all paths inPSModulePath
  • Document changes.
  • Create tests.

Related issues / feature requests

PR Context

PR Checklist

Adam-S-Daniel and jpawlowski reacted with thumbs up emoji
@o-l-a-vo-l-a-v marked this pull request as draftJuly 13, 2024 12:23
@o-l-a-vo-l-a-v changed the titleInstall-path-overrideIdea for ability to optionally override default modules and scripts install path - Duscussion and contribution is welcome!Jul 13, 2024
@o-l-a-v
Copy link
ContributorAuthor

o-l-a-v commentedAug 21, 2024
edited
Loading

@anamnavi,@alerickson Have you had any time to check out this idea? Any thoughts? 🤔


Edit: It's probably better to usepowershell.settings.json for this, ref:

Whichever solution you want for PSResourceGet, let's make it happen. I can try to do it, but I'd first want to hear what alternative you'd like. 🙂


Edit 2: Seems Windows PowerShell does not supportpowershell.config.json in my limited testing:

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

Reviewers

@anamnavianamnaviAwaiting requested review from anamnavianamnavi will be requested when the pull request is marked ready for reviewanamnavi is a code owner

@alericksonalericksonAwaiting requested review from alericksonalerickson will be requested when the pull request is marked ready for reviewalerickson is a code owner

@adityapatwardhanadityapatwardhanAwaiting requested review from adityapatwardhanadityapatwardhan will be requested when the pull request is marked ready for reviewadityapatwardhan is a code owner

@SydneyhSmithSydneyhSmithAwaiting requested review from SydneyhSmithSydneyhSmith will be requested when the pull request is marked ready for reviewSydneyhSmith is a code owner

@shammu1shammu1Awaiting requested review from shammu1shammu1 will be requested when the pull request is marked ready for reviewshammu1 is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@o-l-a-v

[8]ページ先頭

©2009-2025 Movatter.jp