Set-PSResourcerepository fails on new installation of PS-Core 7.6.7
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 52/100
Piste de recherche
The failure is in loading the repository store: the error reports 'Could not find a part of the path' for PSResourceRepository.xml under the user's application data folder on a fresh install. Start from where the store path is built and read, and check whether its parent directory is created before the file is accessed. Reproduce with a clean profile running Set-PSResourceRepository -PSGallery -trusted. Done when that command succeeds on a machine with no existing store, and the related issue #1965 is checked for overlap.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
This is close to the issue #1965.
On a new install of pwsh on Windows and macOS this Command:
Set-PSResourceRepository -PSGallery -trusted
fails
Expected behavior
PS> Set-PSResourceRepository -PSGallery -trusted
Actual behavior
PS> Set-PSResourceRepository -PSGallery -trusted
`Set-PSResourceRepository: Cannot retrieve the dynamic parameters for the cmdlet. Loading repository store failed: Could not find a part of the path '/Users/username/Library/Application Support/PSResourceget/PSResourceRepository.xml'`
Error details
Environment data
PSVersion: 7.6.7
PSEdition: Core
GitCommitId: 767
OS: Microsoft Windows 10.0.26200
Platform: Win32NT
PSCompatibleVersions: {1.0, 2.0, 3.0, 4.0, ...}
PSRemotingProtocolVersion: 2.4
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0
Visuals
No response
- Langage dominant
- C#
- Étoiles
- 578
- Forks
- 114
- Merge moyen
- 1 j 3 h
- PR mergées (30 j)
- 5
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
PowerShell/PSResourceGet#2013 · 3 commentaires ·
-
feature_request Needs-Triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
PowerShell/PSResourceGet#2068 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
PowerShell/PSResourceGet#2063 · 5 commentaires ·
-
PSResourceGet 1.3.0-preview2 error when installing AZ ModulePeut-être pris @alerickson l’a pris il y a 7 jours. OuverteNeeds-Triage
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
PowerShell/PSResourceGet#2061 · 1 commentaire · 1 personne assignée ·
Toutes les issues de PowerShell/PSResourceGet
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
KnifeLemon/Filee#363 ·
Les mainteneurs répondent en général sous 1 jour
-
[CI] .trgen-ignore required for several grammars.Peut-être pris @kaby76 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
antlr/grammars-v4#5073 ·
Les mainteneurs répondent en général sous 1 jour
-
/api/oauth/introspect emits clientId and tokenType instead of RFC 7662's client_id and token_typeOuvertebug P2
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nightscout/nocturne#2317 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: Position intent set on a simple order is dropped when it becomes a bracket, OCO or OTO orderPeut-être pris @RaphaelFakhri l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
alpacahq/alpaca-trade-api-csharp#903 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
joinrpg/joinrpg-net#5752 ·
Les mainteneurs répondent en général sous 1 jour