Skip to content

Conversation

fsackur
Copy link
Contributor

@fsackur fsackur commented Nov 20, 2021

PR Summary

  • Changed -URL params to -Uri (including, e.g., -LicenseUrl => -LicenseUri)
    • Updated (almost) all identifiers in source code url => uri, for consistency
    • Updated docs
    • A few strings and comments left at URL, where they make sense in the context
  • Added test/result* to .gitignore
  • Amended build.ps1 to try importing PSPackageProject before installing again

PR Context

Ref https://github.com/PowerShell/PowerShellGet/issues/460

Broadly speaking, all installed-by-default modules use uri in parameter names instead of url. To provide consistency, I think PowerShellGet should also follow this convention.

PR Checklist

@fsackur fsackur marked this pull request as ready for review November 22, 2021 19:38
@fsackur
Copy link
Contributor Author

fsackur commented Nov 22, 2021

Requesting feedback!

I hope it's not too contentious to change all the terminology in private code; it seemed to me that leaving inconsistencies would be a poor dev experience for future maintainers.

@fsackur fsackur changed the title WIP: Rename params: *url to *uri Rename params: *url to *uri Nov 22, 2021
Copy link
Member

@alerickson alerickson left a comment

Choose a reason for hiding this comment

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

Thank you @fsackur for opening up this PR!
Just a few things--

  1. There's a handful of changes in PublishPSResource that should actually not be changed, specifically 'licenseUrl', 'iconUrl', and 'projectUrl'. Those names are specified in the module manifest, which is used to generate the nuspec, so it'll cause problems when publishing (see nuspec reference if interested)

  2. This is very minor but the last two tests (SetPSResourceRepository.Tests.ps1 and UnregisterPSResourceRepository.Tests.ps1) have Uri in all caps whereas the other tests have it in pascal case. I would recommend changing the former tests to pascal case just to be consistent. Of course this is just an aesthetic request!

Copy link
Member

@anamnavi anamnavi left a comment

Choose a reason for hiding this comment

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

Hi @fsackur! Thanks for creating this PR and for diligently going through all the files and making appropriate changes. I know it looks like a lot of comments but I had feedback in 3 main areas:

  1. please remove the test/result* file reference from the .gitignore. I imagine it's for your local file purposes. Thanks :)

  2. it's a bit of a nitpick but it would be nice to match the casing of cmdlet's Uri parameter across all tests/code. I know in some of the original code we accidentally had it as "URL" so I understand changing it to "URI" however "Uri" where appropriate would be best. I left suggestions on where all this would happen.

  3. I echoed @alerickson's feedback on reverting the *url to *uri change for LicenseUrl, IconUrl, ProjectUrl in a few documentation files just so that we don't miss it.

Thanks for making all these changes, it's looking great :D

@fsackur
Copy link
Contributor Author

fsackur commented Nov 29, 2021

My thanks for the detail - this represents a lot of review work. I will not be able to look at it for 10 days at least - I aim to update the PR by 2021-12-16.

@fsackur
Copy link
Contributor Author

fsackur commented Jan 24, 2022

Aplogies for sitting on this so long, after anamnavi put so much time into review. I will update the PR this week

@kilasuit
Copy link

@alerickson / @anamnavi - It's worth remembering that whilst nuget uses ProjectURL & LicenseURL, PowerShell Module Manifests have always used ProjectUri & LicenseUri as their properties as can be seen in the New-ModuleManifest doc

Whilst I haven't looked deeply at this repositories code base (or this PR either) we need to be sure that the module manifest is correct as people who run the following would end up being broken if the resultant manifest uses Url not Uri in all the properties in the PSData hashtable under the PrivateData HashTable.

Just thought it worth mentioning

@fsackur fsackur force-pushed the rename-param-url-to-uri branch from 785754a to 6259add Compare January 30, 2022 22:06
@fsackur
Copy link
Contributor Author

fsackur commented Jan 30, 2022

Thanks for the feedback, I have addressed the points. Can I get a re-review?

@anamnavi you asked me to pascal-case some URIs in some strings and comments. I've changed a few. Mainly, I've used Uri where the comment refers to the parameter and URI when expressing an actual URI. That's the style I've seen the most. It seems more natural in a sentence. Want me to change?

Copy link
Member

@alerickson alerickson left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple of spots that both @anamnavi and I added suggested changes to be consistent with the Pascal casing of 'Uri'. Once those are in this should be good to go 😄

@fsackur
Copy link
Contributor Author

fsackur commented Feb 1, 2022

I take that feedback to mean that URI should always be Uri in comments and strings, so I have changed all occurrences in PowerShell/PowerShellGet@6c92c80

@alerickson
Copy link
Member

Thanks for giving us a heads up on that @kilasuit! I'm going to open up an issue so that we can test and make sure we have the 'projectUrl' or 'projectUri' and 'iconUrl' or 'iconUri' in the appropriate places. I'll open up a new PR to fix any changes there and add you to review it (no pressure to if you'd rather not).

@fsackur
Copy link
Contributor Author

fsackur commented Feb 3, 2022

I did publish a module to the gallery from this branch. I was then able to find it; it did have project and licese properties as set in my .psd1.

@fsackur
Copy link
Contributor Author

fsackur commented Feb 3, 2022

@anamnavi thanks for all the work you and @alerickson have put into this review. I have taken your review comments to mean that I should change URI => Uri in ALL comments and strings, so I've done that in ALL occurrences (there were a few that you hadn't highlighted).

The only places where all-caps URI still appear:

Path                       LineNumber Line
----                       ---------- ----
.\CHANGELOG.md                     38 - Fix bug to register repositories with local file share paths, ensuring repositories with valid URIs can be registered.
.\test\PSGetModuleInfo.xml         34       <URI N="LicenseUri">https://github.com/PowerShell/SecretManagement/blob/master/LICENSE</URI>
.\test\PSGetModuleInfo.xml         35       <URI N="ProjectUri">https://github.com/powershell/secretmanagement</URI>
.\test\PSGetTestUtils.psm1        514 .LICENSEURI$(if ($LicenseUri) {" $LicenseUri"})
.\test\PSGetTestUtils.psm1        516 .PROJECTURI$(if ($ProjectUri) {" $ProjectUri"})
.\test\PSGetTestUtils.psm1        518 .ICONURI$(if ($IconUri) {" $IconUri"})

I can haz merge?

}

HelpInfoURI = 'http://go.microsoft.com/fwlink/?linkid=855963'
HelpInfoUri = 'http://go.microsoft.com/fwlink/?linkid=855963'
Copy link
Member

Choose a reason for hiding this comment

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

@fsackur can you please revert this change specifically? Like just change it back to "HelpInfoURI".
This variable is uppercased "URI" (i.e HelpInfoURI) in the module manifest files for packages on PSGallery. Example: https://www.powershellgallery.com/packages/PowerShellGet/2.2.5/Content/PowerShellGet.psd1 L286).

Copy link
Member

Choose a reason for hiding this comment

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

Actually I just noticed 'ProjectUri' and 'LicenseUri' both have Uri in Pascal case, so I think we should leave this as is for now

Copy link
Member

Choose a reason for hiding this comment

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

okay that makes sense. I'll merge the PR in then :)

@anamnavi
Copy link
Member

anamnavi commented Feb 3, 2022

@fsackur thank you for the hard work and being so diligent with these changes and also sharing the rule of thumb you used when changing URI => Uri in all strings and comments, that's helpful for us to know! Sorry for the late response and review, I was a little out of it after my booster shot. This looks good to me, only one minor change request, per my comment right above this one (it's just a capitalization change for consistency sake with other .psd1 files, and is just a small nitpick if you don't mind addressing that). Thank you for your contribution! :D

@anamnavi anamnavi merged commit 1269e4e into PowerShell:master Feb 3, 2022
anamnavi pushed a commit that referenced this pull request Sep 7, 2022
Rename params *url to *uri
PaulHigin added a commit that referenced this pull request Jan 10, 2023
* Create private cancellation token in InstallHelper (#422)

* Remove unneeded PR trigger and enable tests on Linux and macOS platforms (#424)

* Remove unneeded PR trigger

* Enable tests on Linux and macOS

* Update README.md (#423)

* Add updates to complete Tests for Install, Save, Publish, Get-Installed, and Uninstall tests. (#420)

* Ensure URI creation is cross platform compatible (#421)

* change URI creation, and resolve Unix tests

* Add fix for failing unix tests (#426)

* Update cmdlet (#407)

* Set up CI with Azure Pipelines

[skip ci]

* Set up CI with Azure Pipelines

[skip ci]

* Set up CI with Azure Pipelines

[skip ci]

* create new src directory

* create new test directory

* Begin refactoring Install

* Fix bug in GetHelper class related to debug statement

* Major refactors to Install helper

* Update utils class

* incorporate bug fixes

* Add install bug fixes and tests

* Update project to C# 7.2

* Add scope tests

* create new src directory

* made changes to paths created in InstallHelper and use Scope as string

* Incorporate bug fixes for accept license, scripts, and installation paths

* Add more install tests

* remove comments used for debugging earlier

* Clean up code and tests

* remove some files accidentally added

* Change scope to be a an Enum type

* Delete azure-pipelines-1.yml

* Delete azure-pipelines-2.yml

* Delete azure-pipelines.yml

* Address bugs introduced from changing Scope type to enum

* Incorporate review feedback, clean up code a bit

* Remove input object parameter

* Remove string comparison in install helper

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update src/code/PSResourceInfo.cs

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Address some code review suggestions

* Add comments and incorporate other code review changes

* add tests for Update

* Add save functionality

* Update InstallHelper with Save changes

* remove NoClobber as Update parameter

* Update src/code/InstallPSResource.cs

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Incorporate further code review changes

* add IsPRerelease to AdditionalMetadata

* resolve prerelease label issue

* fix merge conflicts in tests

* pull in Install test from master

* pull in PSGetTestUtils form master

* add helper for filtering wildcards that handles *

* fix failing tests

* resolve feedback from PR

* add code to skip if not windows tests

* rename Utils helper method and remove unecessary comments

* add SupportShouldProcess

* fix tests for updating with Scope, and use Get-InstalledPSResource instead of Get-Module

* revert change to TryParseVersionOrVersionRange

* remove cancellationToken

* remove PSGalleryName variable not needed

* update design and help docs for UpdatePSResource

* remove comments from Update tests

* remove call to Register-LocalRepo helper as is not needed

* add test for AcceptLicense paramter

* update test with AcceptLicense

* update Install test for AcceptLicense

* add whatIf test to update

* resolve PR feedback and add skip to Unix AllUsers scope tests

* remove references to NameParameterSet

* add fix for failing MacOS tests

Co-authored-by: alerickson <25858831+alerickson@users.noreply.github.com>
Co-authored-by: Amber Erickson <americks@microsoft.com>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Install should implement ShouldProcess (#425)

* Install should impelement ShouldProcess

* Preview tag support (#428)

find prerelease version if version contains tag but prerelease parameter not used

* Find tests (#429)

* add tests for FindPSResource package name with wildcards and version combinations

* add test for invalid wildcard character names

* Temporarily remove unimplemented DestintationPath parameter (#431)

* Wildcard processing (#432)

make wildcard support/error handling consistent across cmdlets

* Update help files for {Update, Find}-PSResource and {Register, Set, Get, Unregister}-PSResourceRepository (#434)

update help docs

* Update help files for {Get-Installed, Install, Publish, Save, and Uninstall}-PSResource (#435)

* Update PSGet documentation link in readme (#437)

* Replace WriteDebug() with WriteVerbose() (#438)

remove WriteDebug()

* Update module version to use new form (#439)

* Update version to new form

* Add missing copyright header

* Change 'APIKey' to 'ApiKey' (#443)

* Update help documentation for minimum inclusive version range (#442)

* update help files with note about minimum inclusive version not being supported according to NuGet version documentation

* Update NuGet libraries to stable version (#445)

* Fix bug with Publish-PSResource not properly adding tags to nuspec (#448)

* add ShouldSupport implementation for Save-PSResource (#447)

* make support for Artifactory more generalized (#446)

* Auto-create PSResourceRepository.xml file if the file does not already exist.  (#450)

* add issue template (#452)

* Update changelog (#453)

* Support Azure Artifacts for PowerShell modules (#449)

PowerShell modules should be supported for Azure Artifacts feeds

* Add clarifying comments to util functions (#454)

* fix minor typo in release yml (#455)

* Command dsc parametersets (#490)

Implement CommandName and DSCResourceName parameter sets

* Tag type paramset (#478)

implement Tag and Type parameter set for Find

* Remove unnecessary .nupkg.metadata from module after installation (#500)

* Fix failing tests on Windows when not an admin (#502)

* Update README.md (#503)

* Add Sbom to release package (#507)

* Fix bug with some modules installing as scripts (#504)

* Value from pipeline cleanup (#511)

Cmdlets should only have ValueFromPipeline and/or ValueFromPipelineByPropertyName attributes per the cases discussed

* Add InputObject parameter sets for appropriate *-PSResource cmdlets, to provide pipeline support (#510)

Add InputObjects for {Install, Save, Uninstall}-PSResource cmdlets.

* Fix CI to use latest ubuntu image (#527)

* Fix test image (#528)

* Add CI notice generator (#529)

* change Find-PSResource tests to not test against production package Carbon (#530)

change Find tests to not test against production package Carbon

* Fix for Install-PSResource always reinstall issue (#525)

* Fix for always reinstall issue and general clean up

* Added restore option for reinstall, in case the install fails

* update error message to mention repo name, also clean up some success/fail messages (#531)

* Uninstall and Get-Installed prerelease support for Version parameter (#523)

implement prerelease versioning search support for Get and Uninstall

* Add -NoClobber functionality to Install-PSResource (#509)

* Implement -DestinationPath parameter for Publish-PSResource (#506)

* Updates for Update-PSResource (#534)

* Changes to UpdatePSResource command

* Add stop processing to UpdatePSResource. Removed multiple instantiations of helper objects.

* Reverting to original source

* Create InstallHelper object only once.

* Fix Publish-PSResource -DestinationPath test failure (#537)

* Fix clobber tests (#539)

* Uri bug fix (#542)

* Use Utils.DeleteDirectory consistently (#544)

* Change all instances of 'Get-InstalledPSResource' to 'Get-PSResource' (#545)

* Code clean up pass (#547)

* Remove unneeded Microsoft.Extensions.Logging (#546)

* Use path separator to split PSModulePath env var (#541)

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* More code clean up for next release (#548)

* Add -SkipDependencyCheck to cmdlets. (#550)

* Add -SkipDependencyCheck to install/save/update cmdlets

* Change -Force to -SkipDependencyCheck

* Fix tests

* Implement Progress Bar for Install (#552)

Add progress bar for install

* Bug fix for Publish-PSResource deleting a temp dir that contains a readonly file (#543)

* Add -PassThru to Install-PSResource, Save-PSResource, and Update-PSResource (#540)

* Add -AsNupkg and -IncludeXML params and test (#538)

* Remove DSCResources from PowerShellGet (#553)

* Add -PassThru support for Unregister-PSResourceRepository (#556)

add PassThru to Unregister-PSResourceRepository cmdlet

* Fix CI after removal of DSC modules (#557)

* Implement -Quiet param for Install and Update -PSResource (#561)

* Update help documentation (#558)

* Install should not silently fail (#554)

install should not fail silently

* Tests and error handling (#564)

clean up tests and add tests for certain errors

* Update change log for beta 12 release (#567)

* Update change log for beta 12 release

* Fix progress bar and test issues

* Fix tests errors being written out to output (#568)

* for errors being written in Save write to a variable

* for Uninstall, fix errors being written

* add more verification that Install step also worked

* Suppress progress bar during testing (#569)

* Add new SBOM parameters (#579)

* Add support for credential persistence (#480)

add support for credential persistence

* rename PSResourceInfo PrereleaseLabel property and variables to Prerelease (#591)

* Implement RequiredResourceFile and RequiredResource parameters (#592)

* Update release build image (#600)

* Fix Write-Error on build failure. (#601)

* Rename params: *url to *uri (#551)

Rename params *url to *uri

* Update tests to use PowerShell pipeline cmdlets (#570)

* Add support for Uninstall-PSResource (#593)

Add support for Uninstall -Prerelease parameter uninstalling only prerelease versions

* Allow .psd1 to be passed into -RequiredResourceFile (#610)

* Refactor tests to use test modules from PSGallery, not PoshTestGallery (#628)

* remove PoshTestGallery from repositories xml file used during tests as it won't be able to search it

* Add -Scope parameter to Get-PSResource and Uninstall-PSResource (#639)

* Change -Repositories param to -Repository in Register-PSResourceRepository (#645)

* Bug fix for publishing modules with RequiredModules specified in .psd1 (#640)

* Update Uninstall-PSResource.md

* Update Get-PSResource.md

* Update Get-PSResource.md

* Update Uninstall-PSResource.md

* Update Update-PSResource.md

* Update Save-PSResource.md

* Update Install-PSResource.md

* Update Set-PSResourceRepository.md

* Update Register-PSResourceRepository.md

* Update tests for Publish-PSResource (#648)

* Publish-PSResource Script publishing support (#642)

support/bugfixes for publishing scripts

* Update Install-PSResource.md

* Update Install-PSResource.md

* Update Install-PSResource.md

* Update Find-PSResource.md

* Update Find-PSResource.md

* Update PowerShellGet.dll-Help.xml

* Update Get-PSResource.md

* Update Get-PSResource.md

* Update Install-PSResource.md

* Update Update-PSResource.md

* Update Install-PSResource.md

* Update Save-PSResource.md

* Update Update-PSResource.md

* Help updates for Preview 13 release (#651)

* add SupportsWildcard attribute for info to appear in help (#658)

* Update changelog and pkg version for 3.0.13-beta release (#659)

* Psresourcerepository file bug (#661)

fix Uri/Url not being null checked

* Update changelog, release notes for version 3.0.14-beta14 (#663)

* Update prerelease tag to 'beta14'

* Add authenticode validation to Install-PSResource (#632)

* Update nuget client dependency packages (#678)

* Update PSData file reader. (#681)

* Add tests for New-PSScriptInfoFIle, Update-PSScriptInfoFile, and Test-PSScriptInfoFIle (#683)

* Add benchmark tests for v3 (and v2) performance (#690)

* 'Update-ModuleManifest' cmdlet implementation (#677)

* Add `.github/fabricbot.json` (#682)

* Add some code clean up changes (#703)

* Some minor code clean up

* Update comments

* Downgrade NuGet client packages to v5.11.2 (#719)

* Script info cmdlets with Line parsing and class implementations (#708)

Script info cmdlets with Line parsing and class implementations

* Add help docs for New,Update,Test-PSScriptFileInfo cmdlets (#689)

* Update PowerShellGet.dll-Help.xml

* Update PowerShellGet.dll-Help.xml

* Script file duplicate keys and parsing help comment block (#726)



Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update Find-PSResource.md

* Update Get-PSResource.md

* Update Install-PSResource.md

* Update New-PSScriptFileInfo.md

* Update Publish-PSResource.md

* Update Register-PSResourceRepository.md

* Update Save-PSResource.md

* Update Set-PSResourceRepository.md

* Update Test-PSScriptFileInfo.md

* Update Uninstall-PSResource.md

* Update Unregister-PSResourceRepository.md

* Update Update-ModuleManifest.md

* Update Update-PSResource.md

* Update Update-PSScriptFileInfo.md

* Update Install-PSResource.md

* Update Find-PSResource.md

* Update PowerShellGet.dll-Help.xml

* Update pkg version, changelog, release notes for 3.0.15-beta15 release (#725)

* Fixes for use of IEnumerable and dependent module re-install issues (#728)

* Remove unneeded IEnumerable interfaces

* Add missing clean up

* Fix always reinstall

* Fix logic error

* Style change

* Minor clean up

* Use count property

* Update NuGet.Packaging to version 6.2.1 (#733)

* updat NuGet.Packaging to version 6.2.1 which depends on Newtonsoft 13.0.1 or higher

* update other NuGet package versions

* Update pkg version and notes for release (#734)

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Copy LICENSE and Notice.txt to build output path (#735)

* Remove ShouldProcess in FindPSResource

* Copy LICENSE and notice.txt to output path in yamls

* Update .ci/ci_auto.yml

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update .ci/ci_auto.yml

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update .ci/ci_release.yml

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update .ci/ci_release.yml

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Update ci_release.yml for Azure Pipelines

* Remove unneeded copy (#736)

* Add error message for failure to install after choosing not to trust repository (#712)

* Remove ShouldProcess from FindPSResource (#710)

* Add OutputType attributes to Get-PSResource and Get-PSResourceRepository (#706)

* Add PSModulePath paths when retrieving resource paths (#700)

* Remove .nupkg.metadata file (#738)

* Change "IncludeXML" to "IncludeXml" (#739)

* Cannot assume PSScriptInfo metadata will have empty lines in between (#744)

* for PSScriptInfo metadata not assume first line will be empty line and can be ignored

* add test scripts without empty lines

* Change ConfirmImpact from Medium to Low

* Change default path to CurrentFileSystemLocation (#742)

* Fix -PassThru to return all properties

* Delete commented code

* Add ValueFromPipelineByPropertyName to Set-PSResourceRepository (#705)

* Fix typo

Co-authored-by: Anam Navied <anam.naviyou@gmail.com>

* Editorial pass on cmdlet ref (#743)

* Check Uri before setting the new value

* refactor updating user uri

* Update priority range for PSResourceRepository to 0-100 (#741)

* Add -Force param to Register-PSResourceRepository and Set-PSResourceRepository (#717)

* Bug fix in Publish-PSResource when creating nuspec (#693)

* add error for failure of Uri creation

* add temporary path parameter to save

* Change error message

* add TemporaryPath parameter to Install and Update

* add parameter attribute

* revert unintendded change

* rename FilePath parameter to Path

* update .md files to Path instead of FilePath

* update test files to use Path instead of FilePath

* Change wording

Co-authored-by: Anam Navied <anam.naviyou@gmail.com>

* Change wording

Co-authored-by: Anam Navied <anam.naviyou@gmail.com>

* remove toString()

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* throw error for wildcard usage and unresolved path

* update .md files to add a new parameter

* Add String and SecureString to acceptable credential types in PSCredentialInfo (#764)

* Expand acceptable Path arguments for Publish-PSResource (#704)

* remove inheritance and fix test

* fix code style

* fix test for UpdatePSResource

* Update test/InstallPSResource.Tests.ps1

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* use should throw instead of try/catch

* Fix RequireModules description & add Find example (#769)

* change path handle

* delete test

* Script file validation and metadata properties population for Publishing, Installing a script. (#781)

* for Publish script validation use validation code from PSScriptFileInfo methods

* for Install, script validation should use PSScriptFileInfo methods and also populate PSResourceInfo with metadata information accessible

* Install-PSResource: Installation path for scripts not included in environment PATH variable (#750)

* when installing script ensure that Script InstallPath is added to env Path variable so script can be invoked without prepending install folder path

* add prompting for setting env var, add scope based env var setting, and pass scope to InstallHelper

* InstallHelper should take ScopeType? param, use Path.PathSeperator for cross platform compat, and add tests

* instead of prompt, use ShouldProcess for modiying user's environment variable

* Update src/code/InstallHelper.cs

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update src/code/InstallHelper.cs

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* detect if Script install path is not in environment PATH for appropriate scope and present warning and revert install tests

* simplify scope based determination of environment PATH variable

Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>

* Update CHANGELOG.md for beta17 (#782)

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Anam Navied <anam.naviyou@gmail.com>

* Release 3.0.17 (#783)

Co-authored-by: Alyssa Vu <alyssavu@microsoft.com>

* Update PowerShellGet.dll-Help.xml (#784)

* replace exposed hardcoded test secrets with random one (#785)

* Missed one case of hardcoded test passwd. (#786)

* Remove unneeded constructor tests (#787)

* Remove unneeded test. (#788)

* Update PSGet module version

Co-authored-by: alerickson <25858831+alerickson@users.noreply.github.com>
Co-authored-by: Anam Navied <anam.naviyou@gmail.com>
Co-authored-by: Amber Erickson <americks@microsoft.com>
Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Keith Jackson <8988864+keithallenjackson@users.noreply.github.com>
Co-authored-by: Sydney Smith <43417619+SydneyhSmith@users.noreply.github.com>
Co-authored-by: Cansu Erdogan <cnserd@gmail.com>
Co-authored-by: Freddie Sackur <github@dustyfox.uk>
Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com>
Co-authored-by: Alyssa Vu <alyssavu@microsoft.com>
Co-authored-by: Alyssa Vu <49544763+alyssa1303@users.noreply.github.com>
Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants