From ab1c0c21b9fb0b3cfd42dfbe0e604494b8f1745f Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Tue, 26 Nov 2024 12:26:01 -0500 Subject: [PATCH] fix context error on windows --- bin/lando.cmd | 3 +++ components/l337-v4.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 bin/lando.cmd diff --git a/bin/lando.cmd b/bin/lando.cmd new file mode 100644 index 000000000..20af504c2 --- /dev/null +++ b/bin/lando.cmd @@ -0,0 +1,3 @@ +@echo off + +node "%~dp0\lando" %* diff --git a/components/l337-v4.js b/components/l337-v4.js index a2d3bf784..d95071395 100644 --- a/components/l337-v4.js +++ b/components/l337-v4.js @@ -310,8 +310,8 @@ class L337ServiceV4 extends EventEmitter { file.instructions = file.url ? ['ADD'] : ['COPY']; if (file.owner) file.instructions.push(`--chown=${file.owner}`); if (file.permissions) file.instructions.push(`--chmod=${file.permissions}`); - file.instructions.push(file.url ?? path.join('.', file.target)); - file.instructions.push(process.platform === 'win32' ? file.target : path.resolve('/', file.target)); + file.instructions.push(file.url ?? path.posix.resolve('/', file.target)); + file.instructions.push(path.posix.resolve('/', file.target)); file.instructions = file.instructions.join(' '); }