From db34e1d195db368023eb653c67f8440cbe933393 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 19 Jun 2023 20:24:59 +0800 Subject: [PATCH] fix: can create sync task by 'GET /:fullname/-/:filenameWithVersion.tgz' --- app/port/controller/package/DownloadPackageVersionTar.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/port/controller/package/DownloadPackageVersionTar.ts b/app/port/controller/package/DownloadPackageVersionTar.ts index d53812da..5b3c17df 100644 --- a/app/port/controller/package/DownloadPackageVersionTar.ts +++ b/app/port/controller/package/DownloadPackageVersionTar.ts @@ -29,6 +29,7 @@ export class DownloadPackageVersionTarController extends AbstractController { method: HTTPMethodEnum.GET, }) async download(@Context() ctx: EggContext, @HTTPParam() fullname: string, @HTTPParam() filenameWithVersion: string) { + // can not try nfs url first, pnpm project with lock will try to get tgz file path directly. // tgz file storeKey: `/packages/${this.fullname}/${version}/${filename}` const version = this.getAndCheckVersionFromFilename(ctx, fullname, filenameWithVersion); const storeKey = `/packages/${fullname}/${version}/${filenameWithVersion}.tgz`;