Skip to content

Commit 62e8643

Browse files
committed
fix yarn4
1 parent 6a113eb commit 62e8643

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

node/flatpak_node_generator/flatpak-yarn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = {
130130
async execute() {
131131
const configuration = await Configuration.find(this.context.cwd,
132132
this.context.plugins);
133-
const lockfilePath = ppath.join(this.context.cwd, configuration.get(`lockfileFilename`));
133+
const lockfilePath = ppath.join(this.context.cwd, 'yarn.lock');
134134
const cacheFolder = `${configuration.get('globalFolder')}/cache`;
135135
const locatorFolder = `${cacheFolder}/locator`;
136136

node/flatpak_node_generator/providers/yarn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ def process_package(
157157
version: str = entry['version']
158158
resolution: str = entry['resolution']
159159
resolved: str = f'resolution#{resolution}'
160+
lock_checksum: str = entry.get('checksum', self.cacheKey)
160161
integrity: Integrity = Integrity(
161-
algorithm='sha512', digest=entry.get('checksum', self.cacheKey)
162+
algorithm='sha512', digest=lock_checksum.split('/')[-1]
162163
)
163164

164165
source: PackageSource

0 commit comments

Comments
 (0)