Issue ID:
Type
Bug
Title:
FIX: Error importing npm packages with duplicate build metadata from ProGet 2022 Data Migration
Created:
10/28/2024 9:05:21 AM by Alana Tripp
Status:
Awaiting Release on
Last pulled:
11/1/2024 9:14:48 PM
Description:
This could be from a previous migration, but we can just ignore it if the file already exists ``` DEBUG: 2024-10-28 08:47:39Z - Copying @xyzScope/xyzPackage/0.1.1-alpha.65+3826682/package.tgz to @xyzScope/xyzPackage/0.1.1-alpha.65/package.tgz... WARN : 2024-10-28 08:47:39Z - Error reading package: The file '\\fileserver\Proget-Packages-Test-Feeds\Packages\.npm\F149\@xyzScope/xyzPackage\0.1.1-alpha.65\package.tgz' already exists. DEBUG: 2024-10-28 08:47:39Z - Retrying... INFO : 2024-10-28 08:47:39Z - pkg:npm/%40dealersocket/cra-template-typescript@0.1.1-alpha.65 has build metadata in source version; attempting to correct... DEBUG: 2024-10-28 08:47:39Z - Copying @xyzScope/xyzPackage/0.1.1-alpha.65+3826682/package.tgz to @xyzScope/xyzPackage/0.1.1-alpha.65/package.tgz... WARN : 2024-10-28 08:47:39Z - Error reading package: The file '\\fileserver\Proget-Packages-Test-Feeds\Packages\.npm\F149\@xyzScope/xyzPackage\0.1.1-alpha.65\package.tgz' already exists. DEBUG: 2024-10-28 08:47:39Z - Retrying... INFO : 2024-10-28 08:47:39Z - pkg:npm/%40dealersocket/cra-template-typescript@0.1.1-alpha.65 has build metadata in source version; attempting to correct... DEBUG: 2024-10-28 08:47:39Z - Copying @xyzScope/xyzPackage/0.1.1-alpha.65+3826682/package.tgz to @xyzScope/xyzPackage/0.1.1-alpha.65/package.tgz... WARN : 2024-10-28 08:47:39Z - Error reading package: The file '\\fileserver\Proget-Packages-Test-Feeds\Packages\.npm\F149\@xyzScope/xyzPackage\0.1.1-alpha.65\package.tgz' already exists. ERROR: 2024-10-28 08:47:39Z - Error importing data: System.IO.IOException: The file '\\fileserver\Proget-Packages-Test-Feeds\Packages\.npm\F149\@xyzScope/xyzPackage\0.1.1-alpha.65\package.tgz' already exists. at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) at Inedo.IO.FileEx.Copy(String sourceFileName, String targetFileName, Boolean overwrite) at Inedo.ProGet.Extensions.FileSystems.DirectoryFileSystem.CopyFileAsync(String sourceName, String targetName, Boolean overwrite, CancellationToken cancellationToken) at Inedo.ProGet.Feeds.Npm.NpmFeed.<>c__DisplayClass64_0.<b__6>d.MoveNext() --- End of stack trace from previous location --- at Inedo.ProGet.Feeds.StandardPackageFeed`3.<>c__DisplayClass55_0`1.<g__importRow|1>d.MoveNext() --- End of stack trace from previous location --- at Inedo.ProGet.Feeds.StandardPackageFeed`3.ImportLegacyPackageDataAsync[TOldRow](ImportLegacyPackageDataContext context, IEnumerable`1 oldRows, Func`2 importAsync, CancellationToken cancellationToken) at Inedo.ProGet.Feeds.Npm.NpmFeed.Inedo.ProGet.Feeds.ILegacyImportableFeed.ImportLegacyPackageDataAsync(ImportLegacyPackageDataContext context, CancellationToken cancellationToken) at Inedo.ProGet.Executions.MigrateFeedsForProGet23Execution.ExecuteAsync(IManualExecutionContext context) ```