Skip to content

Commit

Permalink
ci(linux): use container dependencies only for remote [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Feb 20, 2024
1 parent 95db40c commit f18abb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
5 changes: 0 additions & 5 deletions patches/linux/yarn-dependencies.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
index 72dd74f..0f70d8c 100644
--- a/build/npm/postinstall.js
+++ b/build/npm/postinstall.js
@@ -50,3 +50,3 @@ function yarnInstall(dir, opts) {

- if (process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'] && /^(.build\/distro\/npm\/)?remote$/.test(dir)) {
+ if (process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME']) {
const userinfo = os.userInfo();
@@ -55,10 +55,6 @@ function yarnInstall(dir, opts) {
opts.cwd = root;
- if (process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm') {
Expand Down
18 changes: 9 additions & 9 deletions prepare_vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ if [[ "${OS_NAME}" == "linux" ]]; then

export VSCODE_HOST_MOUNT

# if [[ "${VSCODE_ARCH}" == "x64" || "${VSCODE_ARCH}" == "arm64" ]]; then
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:centos7-devtoolset8-${VSCODE_ARCH}"
# elif [[ "${VSCODE_ARCH}" == "armhf" ]]; then
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-arm32v7"
# elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
# VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le"
# fi

# export VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME
if [[ "${VSCODE_ARCH}" == "x64" || "${VSCODE_ARCH}" == "arm64" ]]; then
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:centos7-devtoolset8-${VSCODE_ARCH}"
elif [[ "${VSCODE_ARCH}" == "armhf" ]]; then
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-arm32v7"
elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le"
fi

export VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME

for i in {1..5}; do # try 5 times
yarn --cwd build --frozen-lockfile --check-files && break
Expand Down

0 comments on commit f18abb0

Please sign in to comment.