PowerShell / PowerShellGet

This module provide functions used with PowerShellGet v3 to provide compatibility with scripts expecting PowerShellGet v2
MIT License
49 stars 13 forks source link

PSRepositories.xml is broken every few months #60

Open dominikjeske opened 6 months ago

dominikjeske commented 6 months ago

Prerequisites

Steps to reproduce

It is random - I don't know how to reproduce this. We have this issue so far on Windows Server 2016, Windows 10, Linux Rel and MacOs. On development machines and server agents - we actually have build pipelines to fix this ;(. Only way we have now is to delete PSRepositories.xml.

Expected behavior

PowerShellGet is handling broken PSRepositories.xml automatically or prints better error message with information where to find this file.

Actual behavior

We have error 'Unable to find repository...' and all API's working with repositories are failing

Error details

No response

Environment data

It is happening on many versions from 7.0.* to 7.3.* (7.4 is fresh so we don't know yet)

Version

7.3.10

Visuals

image