mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
build: remove legacy server support (#235232)
* build: remove legacy server support * chore: update rpm dependencies * chore: fix publishing * cli: provide option for unsupported glibc sysroot * chore: add unsupported mode to prereq check * chore: add logging * chore: add comment about patchelf execution order
This commit is contained in:
@@ -7,21 +7,20 @@ set -e
|
||||
|
||||
# The script checks necessary server requirements for the classic server
|
||||
# scenarios. Currently, the script can exit with any of the following
|
||||
# 3 exit codes and should be handled accordingly on the extension side.
|
||||
# 2 exit codes and should be handled accordingly on the extension side.
|
||||
#
|
||||
# 0: All requirements are met, use the default server.
|
||||
# 99: Unsupported OS, abort server startup with appropriate error message.
|
||||
# 100: Use legacy server.
|
||||
#
|
||||
|
||||
# Do not remove this check.
|
||||
# Provides a way to skip the server requirements check from
|
||||
# outside the install flow. A system process can create this
|
||||
# file before the server is downloaded and installed.
|
||||
if [ -f "/tmp/vscode-skip-server-requirements-check" ]; then
|
||||
echo "!!! WARNING: Skipping server pre-requisite check !!!"
|
||||
echo "!!! Server stability is not guaranteed. Proceed at your own risk. !!!"
|
||||
exit 0
|
||||
if [ -f "/tmp/vscode-skip-server-requirements-check" ] || [ -n "$VSCODE_SERVER_CUSTOM_GLIBC_LINKER" ]; then
|
||||
echo "!!! WARNING: Skipping server pre-requisite check !!!"
|
||||
echo "!!! Server stability is not guaranteed. Proceed at your own risk. !!!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
ARCH=$(uname -m)
|
||||
@@ -156,7 +155,7 @@ else
|
||||
fi
|
||||
|
||||
if [ "$found_required_glibc" = "0" ] || [ "$found_required_glibcxx" = "0" ]; then
|
||||
echo "Warning: Missing required dependencies. Please refer to our FAQ https://aka.ms/vscode-remote/faq/old-linux for additional information."
|
||||
echo "Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vscode-remote/faq/old-linux for additional information."
|
||||
# Custom exit code based on https://tldp.org/LDP/abs/html/exitcodes.html
|
||||
exit 100
|
||||
exit 99
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user