Skip to content

Commit

Permalink
DEBUG WIN14
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Mar 15, 2024
1 parent 9c55633 commit 0dc2cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hooks/lando-setup-build-engine-win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ module.exports = async (lando, options) => {
requiresRestart: async () => {
// if wsl is not installed then this requires a restart
const {code, stdout} = await require('../utils/get-wsl-status')({debug});
console.log(stdout);
console.log(Buffer.from(stdout, 'utf8').toString('utf16le'));
console.log('utf8', stdout);
console.log('buffertrans', Buffer.from(stdout, 'utf8').toString('utf16le'));

const hasFeaturesEnabled = !stdout.includes('"Virtual Machine Platform"') && !stdout.includes('"Windows Subsystem for Linux"'); // eslint-disable-line max-len
const installed = code === 0 && hasFeaturesEnabled;
Expand Down
2 changes: 1 addition & 1 deletion utils/get-wsl-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = async (options = {}) => {
const opts = merge({}, defaults, options);
const {debug} = opts;
const {code, stdout} = await require('./run-command')('powershell', args, opts);
debug('wsl status', opts);
debug('wsl status %O', opts.env);

return {code, stdout};
};
Expand Down

0 comments on commit 0dc2cac

Please sign in to comment.