forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use legacy server as default with additional warnings (microsoft…
…#204377) * ci: switch to glibc 2.17 remote server * chore: signal user about unsupported connection * chore: address review comments * chore: update nodejs build * chore: bump distro * chore: lower the minimum requirements * fix: glibc version check * chore: remove explicit connection disposal
- Loading branch information
1 parent
6a315f2
commit cf7ddbb
Showing
18 changed files
with
298 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-01-29T19:26:27.993Z | ||
2024-02-05T09:34:15.476Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
TRIPLE="x86_64-linux-gnu" | ||
if [ "$VSCODE_ARCH" == "arm64" ]; then | ||
TRIPLE="aarch64-linux-gnu" | ||
elif [ "$VSCODE_ARCH" == "armhf" ]; then | ||
TRIPLE="arm-rpi-linux-gnueabihf" | ||
fi | ||
|
||
# Get all files with .node extension from remote/node_modules folder | ||
files=$(find remote/node_modules -name "*.node" -not -path "*prebuilds*") | ||
|
||
echo "Verifying requirements for files: $files" | ||
|
||
for file in $files; do | ||
glibc_version="$EXPECTED_GLIBC_VERSION" | ||
glibcxx_version="$EXPECTED_GLIBCXX_VERSION" | ||
while IFS= read -r line; do | ||
if [[ $line == *"GLIBC_"* ]]; then | ||
version=$(echo "$line" | awk '{print $5}' | tr -d '()') | ||
version=${version#*_} | ||
if [[ $(printf "%s\n%s" "$version" "$glibc_version" | sort -V | tail -n1) == "$version" ]]; then | ||
glibc_version=$version | ||
fi | ||
elif [[ $line == *"GLIBCXX_"* ]]; then | ||
version=$(echo "$line" | awk '{print $5}' | tr -d '()') | ||
version=${version#*_} | ||
if [[ $(printf "%s\n%s" "$version" "$glibcxx_version" | sort -V | tail -n1) == "$version" ]]; then | ||
glibcxx_version=$version | ||
fi | ||
fi | ||
done < <("$PWD/.build/sysroots/$TRIPLE/$TRIPLE/bin/objdump" -T "$file") | ||
|
||
if [[ "$glibc_version" != "$EXPECTED_GLIBC_VERSION" ]]; then | ||
echo "Error: File $file has dependency on GLIBC > $EXPECTED_GLIBC_VERSION" | ||
exit 1 | ||
fi | ||
if [[ "$glibcxx_version" != "$EXPECTED_GLIBCXX_VERSION" ]]; then | ||
echo "Error: File $file has dependency on GLIBCXX > $EXPECTED_GLIBCXX_VERSION" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
disturl "https://nodejs.org/dist" | ||
target "18.17.1" | ||
ms_build_id "252256" | ||
ms_build_id "255375" | ||
runtime "node" | ||
build_from_source "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.