You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Google Cloud Storage as storage for NuGet packages, and I enabled AllowPackageOverwrites setting to allow override packages, but when I push over an existing package it shows me an InternalServerError response.
The container log show the following exception:
fail: BaGet.Web.PackagePublishController[0]
Exception thrown during package upload
System.InvalidOperationException: Failed to store package mycompany.common 0.1.0 due to conflict
at BaGet.Core.PackageStorageService.SavePackageContentAsync(Package package, Stream packageStream, Stream nuspecStream, Stream readmeStream, Stream iconStream, CancellationToken cancellationToken) in /src/BaGet.Core/Storage/PackageStorageService.cs:line 72
at BaGet.Core.PackageIndexingService.IndexAsync(Stream packageStream, CancellationToken cancellationToken) in /src/BaGet.Core/Indexing/PackageIndexingService.cs:line 105
at BaGet.Web.PackagePublishController.Upload(CancellationToken cancellationToken) in /src/BaGet.Web/Controllers/PackagePublishController.cs:line 57
This is obviously because package already exists on GCS, but I want to know if there's any option to allow override files on GCS through BaGet configuration.
FYI, I'm using PostgreSQL as database, running on a Docker container.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using Google Cloud Storage as storage for NuGet packages, and I enabled
AllowPackageOverwrites
setting to allow override packages, but when I push over an existing package it shows me an InternalServerError response.The container log show the following exception:
This is obviously because package already exists on GCS, but I want to know if there's any option to allow override files on GCS through BaGet configuration.
FYI, I'm using PostgreSQL as database, running on a Docker container.
Beta Was this translation helpful? Give feedback.
All reactions