Skip to content

Commit

Permalink
fix: Address unknown path format error in wsl2 (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
snicmakino authored Jan 26, 2022
1 parent 95c694f commit b16c82d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const spawn = require('child-process-ext/spawn');
const isWsl = require('is-wsl');
const fse = require('fs-extra');
const path = require('path');
const os = require('os');

/**
* Helper function to run a docker command
Expand Down Expand Up @@ -129,7 +130,8 @@ async function tryBindPath(bindPath, testFile, pluginInstance) {
*/
async function getBindPath(servicePath, pluginInstance) {
// Determine bind path
if (process.platform !== 'win32' && !isWsl) {
let isWsl1 = isWsl && !os.release().includes('microsoft-standard');
if (process.platform !== 'win32' && !isWsl1) {
return servicePath;
}

Expand Down

0 comments on commit b16c82d

Please sign in to comment.