JustinGrote / JustinGrote/ModuleFast

Update Profile with ModuleFast module path reports successful even if profile doesnt exist

未关闭
#82 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
C#
星标
151
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

This happened in vscode remoting to a windows machine but may be present elsewhere:

```
PS C:\Users\ESRT-Allied\Documents\PowerShell\Scripts> imf -verbose
VERBOSE: Updating PSModulePath to include C:\Users\ESRT-Allied\AppData\Local\powershell\Modules
VERBOSE: Using relative path $([environment]::GetFolderPath('LocalApplicationData'))\powershell\Modules instead of 'C:\Users\ESRT-Allied\AppData\Local\powershell\Modules' in profile
VERBOSE: Checked for relative destination
VERBOSE: PSModulePath $([environment]::GetFolderPath('LocalApplicationData'))\powershell\Modules already in profile, skipping...
VERBOSE: 🔎 No modules specified to install. Beginning SpecFile detection...
Install-ModuleFast: Could not find any required spec files in C:\Users\ESRT-Allied\Documents\PowerShell\Scripts. Verify the path is correct or provide Module Specifications either via -Path or -Specification
PS C:\Users\ESRT-Allied\Documents\PowerShell\Scripts> $profile
C:\Users\ESRT-Allied\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
PS C:\Users\ESRT-Allied\Documents\PowerShell\Scripts> cat $profile
Get-Content: Cannot find path 'C:\Users\ESRT-Allied\Documents\PowerShell\Microsoft.PowerShell_profile.ps1' because it does not exist.
PS C:\Users\ESRT-Allied\Documents\PowerShell\Scripts> gc -raw $profile
Get-Content: Cannot find path 'C:\Users\ESRT-Allied\Documents\PowerShell\Microsoft.PowerShell_profile.ps1' because it does not exist.
PS C:\Users\ESRT-Allied\Documents\PowerShell\Scripts> gc -raw $profile.CurrentUserAllHosts
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。