che
che copied to clipboard
Upstream version of electron can not be used for the che-code
Is your task related to a problem? Please describe
ubi8-based build fails for the che-code with the following error:
npm error g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
I've found that
34.5.1version of electron is used by the1.100version of VS Code, see https://github.com/microsoft/vscode/blob/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/package.json#L158- this electron version requires at least
gcc10package version - but
ubi8image containsgcc version 8.5.0 20210514 (Red Hat 8.5.0-24) (GCC)
See also https://github.com/electron/electron/blob/main/docs/breaking-changes.md:
Describe the solution you'd like
The best solution would be upgrade gcc package for the ubi8 images.
Describe alternatives you've considered
I will try to downgrade electron version on the che-code side,
but it will require changes for the VS Code sources + reviewing those source files at every alignment with upstream.
Additional context
No response