PowerShell / PowerShell/PSResourceGet
Install-Package support
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 576
- Fork
- 114
- Merge medio
- 1g 2h
- PR unite (30g)
- 7
Descrizione
Summary of the new feature / enhancement
From what I understated this module suppose to eventually replace PackageManagement and PowerShellGetv2
In https://github.com/OneGet/oneget it states that This module is currently not in development. The PowerShell/PowerShellGet repository is actively in development as the new PowerShell package manager.
So what are the replacements for *-Package Cmdlets? I tried the following:
Register-PSResourceRepository -Name 'nuget.org' -URL 'http://www.nuget.org/api/v2'
Find-PSResource -Name MailKit -Repository nuget.org
# Returns package info like MailKit 2.15.0.0 etc.
Install-PSResource -Name Microsoft.NETCore.Platforms -Repository nuget.org -Verbose
# [Error] Install-PSResource: Module manifest file: ...\Microsoft.NETCore.Platforms.psd1 does not exist. This is not a valid PowerShell module.
So repository installed and searched successfully but installing is blocked.
The other problem is the "dependency loop"
As reported here https://github.com/OneGet/oneget/issues/475 Install-Package cannot actually work on most of the packages without -SkipDependencies as it resolves dependencies incorrectly and will return loop error without it. The last statement in this issue is:
@GehanPanapitiya hopefully it will be addressed in new PowerShellGet v3
But Install-PSResource doesn't have -SkipDependencies and the loop bug here is worst as it's not even detected:
Install-Package -Name MailKit -Verbose
# [Error] Install-Package: Dependency loop detected for package 'MailKit'.
# This works
Install-Package -Name MailKit -SkipDependencies -Verbose
# This will hang forever (probably spamming the repo with request in a loop?)
Install-PSResource -Name MailKit -Repository nuget.org -Verbose
# Loops silently forever?
So what is the plan/roadmap on this? Will packages be supported on Install-PSResource or some new commend? As PackageManagement is not developed it will probably will never be fixed there.
Proposed technical implementation details (optional)
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando il comportamento segnalato di Install-PSResource e Install-Package, inclusi gli esempi di comandi per MailKit e Microsoft.NETCore.Platforms e il problema di OneGet collegato relativo a un ciclo di dipendenze. Determina se l'installazione dei pacchetti, la gestione dei cicli di dipendenze e una sostituzione per -SkipDependencies rientrano nell'ambito; per considerare il lavoro completato sarebbe necessaria una roadmap o un piano di implementazione concordato, che l'issue non definisce ancora.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- powershell
- Ambito
- cli, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100