Skip to content

Commit

Permalink
fix: can create sync task by 'GET /:fullname/-/:filenameWithVersion.tgz'
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhengxu2018 authored and 何征旭 committed Jun 20, 2023
1 parent 27f4553 commit db34e1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/port/controller/package/DownloadPackageVersionTar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit db34e1d

Please sign in to comment.