Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

FUSETOOLS2-2371: provide workaround to install VS Code extensions with #1808

Merged

Conversation

apupier
Copy link
Member

@apupier apupier commented May 2, 2024

latest Node security release

see nodejs/node#52554 (comment)

@apupier apupier force-pushed the 2308-FixMainBranchTestOnWindows branch from d5e480f to 695e89c Compare May 2, 2024 14:35
@apupier apupier marked this pull request as ready for review May 2, 2024 14:49
@apupier apupier requested review from djelinek and hdamarcelo May 2, 2024 14:49
@apupier apupier added the PRIO label May 2, 2024
@@ -46,7 +47,8 @@ async function main(): Promise<void> {
function installExtraExtension(cliPath: string, extensionId: string, args: string[]) {
cp.spawnSync(cliPath, [...args, '--install-extension', extensionId, '--force'], {
encoding: 'utf-8',
stdio: 'inherit'
stdio: 'inherit',
shell: os.platform() === 'win32' // to workaround https://github.com/nodejs/node/issues/52554#issuecomment-2060026269
Copy link
Member Author

@apupier apupier May 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another option would be to provide always true and escape spaces for MacOS for the vscode executable path

latest Node security release

see nodejs/node#52554 (comment)
Applying it on Windows only otherwise it is breaking MacOS with error:
`/bin/sh:
/Users/runner/work/vscode-camelk/vscode-camelk/.vscode-test/vscode-darwin-arm64-1.85.2/Visual:
No such file or directory`

Signed-off-by: Aurélien Pupier <[email protected]>
@apupier apupier force-pushed the 2308-FixMainBranchTestOnWindows branch from 695e89c to 0c01328 Compare May 2, 2024 14:55
@apupier apupier changed the title FUSETOOLS2-2308: provide workaround to install VS Code extensions with FUSETOOLS2-2371: provide workaround to install VS Code extensions with May 2, 2024
Copy link

sonarqubecloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@apupier apupier merged commit 65f5f4f into camel-tooling:main May 2, 2024
6 checks passed
@apupier apupier deleted the 2308-FixMainBranchTestOnWindows branch May 2, 2024 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants