mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
* chore: bump electron@15.3.0 * chore: bump node@16.x * chore: enable render process reuse * Revert "watcher - use `type` property for crash reporter location" This reverts commitbfa488dd8f. * Revert "watcher - enable crash reports on linux (#136264)" This reverts commitaf261488f8. * chore: enable crashpad on linux * chore: bump electron@15.3.1 * chore: update api changes * chore: bump @vscode/sqlite3@5.0.3 * spec: skip non-context aware module unittests * chore: fix perf hook integration with node environment * fix: adopt fs api changes * chore: fix integration tests * chore: bump electron@15.3.2 * chore: bump electron@16.0.0 * temp(macOS): kill test instances in OSS * Revert "temp(macOS): kill test instances in OSS" This reverts commit b0d796c8d64227a5ec012c060bbbee7d9da27568. * chore: update chromium version for clang downloader * some 💄 changes * align with changes * adopt more fs.rm * 💄 * chore: bump @vscode/sqlite3@5.0.4 * fix layers check to account for duplicated types from node.js * update todo for type casts * smoke - fix compile issue * chore: update module cache * watcher - fix unhandled rejection (fix #137416) * ci: update node version * enable stack dumping * update electron types to 16.x * chore: bump @vscode/sqlite3@5.0.5 Refs https://github.com/microsoft/vscode/issues/137496 * fix layer issue * add `AbortSignal` to core types * chore: update linux compile flags Refs797723ec83* ci: fix linux build * ci: update github ci cache * ci: fix remote build in github ci * ci: better fix for remote build * chore: bump azure cache * chore: fix merge conflict * :chore: update to electron@16.0.2 * chore: bump @vscode/sqlite3@5.0.7 * ci: update to gcc-4.9 for remote Refs https://github.com/microsoft/vscode/issues/137659 * ci: switch to buster for linux arm Refs https://github.com/microsoft/vscode/issues/137927 * ci: fix build on linux arm64 * ci: fix arm client compiler toolchain Refs #137927 * chore: bump electron@16.0.3 * ci: fix compile flags for the c toolchain * chore: bump electron@16.0.4 * Add experimental dark mode flag (#139109) * Add experimental dark mode flag * Apply PR feedback * chore: bump electron@16.0.6 * chore: bump electron@16.0.7 Fixes https://github.com/microsoft/vscode/issues/138792 Fixes https://github.com/microsoft/vscode/issues/139300 * chore: experimental highlight API * smoke - fix compile issue * FIXME: custom ELECTRON_RUN_AS_NODE with node worker * Revert "chore: bump electron@16.0.7" This reverts commit5fd01cf37c. * Revert "Revert "chore: bump electron@16.0.7"" This reverts commita7f1b73951. * chore: fix github linux workflow * chore: address review feedback * chore: bump electron@16.0.8 * ci: revert to stretch distro for linux arm Refs https://github.com/microsoft/vscode/issues/137927 * ci: force build * chore: update yarn.lock * address feedback * Revert "FIXME: custom ELECTRON_RUN_AS_NODE with node worker" This reverts commit7b48fa3732. * ci: fix remote folder build * chore: fix github linux ci * 🆙 `versionSpec` Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com> Co-authored-by: Raymond Zhao <raymondzhao@microsoft.com>
96 lines
3.0 KiB
JavaScript
96 lines
3.0 KiB
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
const cp = require('child_process');
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
const { dirs } = require('./dirs');
|
|
const yarn = process.platform === 'win32' ? 'yarn.cmd' : 'yarn';
|
|
|
|
/**
|
|
* @param {string} location
|
|
* @param {*} [opts]
|
|
*/
|
|
function yarnInstall(location, opts) {
|
|
opts = opts || { env: process.env };
|
|
opts.cwd = location;
|
|
opts.stdio = 'inherit';
|
|
|
|
const raw = process.env['npm_config_argv'] || '{}';
|
|
const argv = JSON.parse(raw);
|
|
const original = argv.original || [];
|
|
const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile');
|
|
if (opts.ignoreEngines) {
|
|
args.push('--ignore-engines');
|
|
delete opts.ignoreEngines;
|
|
}
|
|
|
|
console.log(`Installing dependencies in ${location}...`);
|
|
console.log(`$ yarn ${args.join(' ')}`);
|
|
const result = cp.spawnSync(yarn, args, opts);
|
|
|
|
if (result.error || result.status !== 0) {
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
for (let dir of dirs) {
|
|
|
|
if (dir === '') {
|
|
// `yarn` already executed in root
|
|
continue;
|
|
}
|
|
|
|
if (/^remote/.test(dir) && process.platform === 'win32' && (process.arch === 'arm64' || process.env['npm_config_arch'] === 'arm64')) {
|
|
// windows arm: do not execute `yarn` on remote folder
|
|
continue;
|
|
}
|
|
|
|
if (dir === 'build/lib/watch') {
|
|
// node modules for watching, specific to host node version, not electron
|
|
yarnInstallBuildDependencies();
|
|
continue;
|
|
}
|
|
|
|
let opts;
|
|
|
|
if (dir === 'remote') {
|
|
// node modules used by vscode server
|
|
const env = { ...process.env };
|
|
if (process.env['VSCODE_REMOTE_CC']) { env['CC'] = process.env['VSCODE_REMOTE_CC']; }
|
|
if (process.env['VSCODE_REMOTE_CXX']) { env['CXX'] = process.env['VSCODE_REMOTE_CXX']; }
|
|
if (process.env['CXXFLAGS']) { delete env['CXXFLAGS']; }
|
|
if (process.env['CFLAGS']) { delete env['CFLAGS']; }
|
|
if (process.env['LDFLAGS']) { delete env['LDFLAGS']; }
|
|
if (process.env['VSCODE_REMOTE_NODE_GYP']) { env['npm_config_node_gyp'] = process.env['VSCODE_REMOTE_NODE_GYP']; }
|
|
opts = { env };
|
|
} else if (/^extensions\//.test(dir)) {
|
|
opts = { ignoreEngines: true };
|
|
}
|
|
|
|
yarnInstall(dir, opts);
|
|
}
|
|
|
|
function yarnInstallBuildDependencies() {
|
|
// make sure we install the deps of build/lib/watch for the system installed
|
|
// node, since that is the driver of gulp
|
|
const watchPath = path.join(path.dirname(__dirname), 'lib', 'watch');
|
|
const yarnrcPath = path.join(watchPath, '.yarnrc');
|
|
|
|
const disturl = 'https://nodejs.org/download/release';
|
|
const target = process.versions.node;
|
|
const runtime = 'node';
|
|
|
|
const yarnrc = `disturl "${disturl}"
|
|
target "${target}"
|
|
runtime "${runtime}"`;
|
|
|
|
fs.writeFileSync(yarnrcPath, yarnrc, 'utf8');
|
|
yarnInstall(watchPath);
|
|
}
|
|
|
|
cp.execSync('git config pull.rebase merges');
|
|
cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore');
|