Skip to content

Commit 5c10064

Browse files
committed
Fix rewrite url
1 parent bf89d11 commit 5c10064

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

codeserver/ubi9-python-3.12/prefetch-input/patches/setup-offline-binaries.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ populate_vsix "${HERMETO_OUTPUT}/deps/generic/ms-vscode.vscode-js-profile-table.
106106

107107
# Rewrite all package-lock.json "resolved" URLs to point to the cachi2 file cache.
108108
# This is the critical step that makes `npm ci --offline` work: URLs like
109-
# Registry URLs in lockfiles become CACHI2_BASE/<filename> (file:// or https per CACHI2_BASE; repo lockfiles use https so prefetch can fetch).
110-
# Run with bash (not source) so the script always uses bash and perl quoting is correct under any RUN shell.
111-
bash /root/scripts/lockfile-generators/rewrite-npm-urls.sh prefetch-input/code-server
109+
# https://registry.npmjs.org/foo/-/foo-1.0.0.tgz become file:///cachi2/output/deps/npm/...
110+
. /root/scripts/lockfile-generators/rewrite-npm-urls.sh prefetch-input/code-server
112111
echo "Offline binary setup complete."

0 commit comments

Comments
 (0)