Skip to content

Installing Latest Pester copies it to Scripts instead of Modules #477

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
JustinGrote opened this issue Aug 24, 2021 · 1 comment
Closed
3 tasks done

Comments

@JustinGrote
Copy link
Contributor

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

May be due to other versions of pester being present

Expected behavior

Pester Installs

Actual behavior

Pester gets copied to scripts

Error details

💥❯ install-psresource pester -verbose
VERBOSE: All paths to search: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules'
VERBOSE: All paths to search: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Scripts'
VERBOSE: Performing the operation "Install-PSResource" on target "package to install: 'pester'".
VERBOSE: Parameters passed in >>> Name: 'pester'; Version: ''; Prerelease: 'False'; Repository: ''; AcceptLicense: 'False'; Quiet: 'False'; Reinstall: 'False'; TrustRepository: 'False'; NoClobber: 'False';
VERBOSE: Attempting to search for packages in 'PSGallery'
VERBOSE: Checking if untrusted repository should be used

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its Trusted value by
running the Set-PSResourceRepository cmdlet. Are you sure you want to install the PSresource from 'PSGallery' ?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
VERBOSE: Untrusted repository accepted as trusted source.
VERBOSE: Null Type provided, so add PSGalleryScripts repository
VERBOSE: Searching in repository PSGallery
VERBOSE: 5.3.0.0
VERBOSE: Null Type provided, so add PSGalleryScripts repository
VERBOSE: Searching in repository PSGallery
VERBOSE: Searching through package path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester'
VERBOSE: Searching through package path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester'
VERBOSE: Searching through package version path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.2.2'
VERBOSE: Directory parsed as NuGet version: '5.2.2'
VERBOSE: Reading package metadata from: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.2.2\PSGetModuleInfo.xml'
VERBOSE: Searching through package path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester'
VERBOSE: Searching through package path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester'
VERBOSE: Searching through package version path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.2.2'
VERBOSE: Directory parsed as NuGet version: '5.2.2'
VERBOSE: Reading package metadata from: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.2.2\PSGetModuleInfo.xml'
WARNING: Resource 'Pester' with version '5.2.2' is already installed.  If you would like to reinstall, please run the cmdlet again with the -Reinstall parameter
VERBOSE: Searching through package version path: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.1.1'
VERBOSE: Directory parsed as NuGet version: '5.1.1'
VERBOSE: Reading package metadata from: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Pester\5.1.1\PSGetModuleInfo.xml'
WARNING: Resource 'Pester' with version '5.1.1' is already installed.  If you would like to reinstall, please run the cmdlet again with the -Reinstall parameter
VERBOSE: Begin installing package: 'Pester'
VERBOSE: Successfully able to download package from source to: 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379'
VERBOSE: Deleting 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0\pester.5.3.0.nupkg.sha512'
VERBOSE: Deleting 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0\pester.nuspec'
VERBOSE: Deleting 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0\pester.5.3.0.nupkg'
VERBOSE: Installation source path is: 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0'
VERBOSE: Installation destination path is: 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Scripts'
VERBOSE: Checking if path 'True' exists:
VERBOSE: Deleting script metadata XML
VERBOSE: Moving 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0\Pester_InstalledScriptInfo.xml' to 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Scripts\InstalledScriptInfos\Pester_InstalledScriptInfo.xml'
VERBOSE: Checking if path 'True' exists:
VERBOSE: Deleting script file
VERBOSE: Moving 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379\pester\5.3.0\Pester.ps1' to 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Scripts\Pester.ps1'
VERBOSE: Successfully installed package 'Pester' to location 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Scripts'
VERBOSE: Attempting to delete 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379'
VERBOSE: Successfully deleted 'C:\Users\JGrote\AppData\Local\Temp\126f2020-ff52-4bba-b059-14660872c379'


### Environment data

```powershell
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.11     beta       PowerShellGet                       {Find-PSResource, Get-InstalledPSResource, Get-PS…

Key   : PSVersion
Value : 7.1.4
Name  : PSVersion


Key   : PSEdition
Value : Core
Name  : PSEdition


Key   : GitCommitId
Value : 7.1.4
Name  : GitCommitId


Key   : OS
Value : Microsoft Windows 10.0.22000
Name  : OS


Key   : Platform
Value : Win32NT
Name  : Platform


Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions


Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion


Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion


Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals

No response

@alerickson
Copy link
Member

Thanks @JustinGrote! I'm going to close this issue because we're tracking this particular issue here #383. We'll have this fixed for the next release, though.

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

No branches or pull requests

3 participants