fix(maven): Pass request path to Maven checksum handler so checksum files are resolved correctly

This commit is contained in:
2025-11-21 09:17:35 +00:00
parent 80005af576
commit 42209d235d
4 changed files with 17 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartregistry',
version: '1.3.0',
version: '1.3.1',
description: 'a registry for npm modules and oci images'
}

View File

@@ -85,7 +85,7 @@ export class MavenRegistry extends BaseRegistry {
// Check if it's a checksum file
if (coordinate.extension === 'md5' || coordinate.extension === 'sha1' ||
coordinate.extension === 'sha256' || coordinate.extension === 'sha512') {
return this.handleChecksumRequest(context.method, coordinate, token);
return this.handleChecksumRequest(context.method, coordinate, token, path);
}
// Handle artifact requests (JAR, POM, WAR, etc.)