Archived
1
0

feat: add npm_config_build_from_source to build scripts

This is necessary due to argon2 being added and an upstream issue where it uses
a Linux build that is too new for CentOS 7.
This commit is contained in:
Joe Previte 2021-06-07 14:09:54 -07:00
parent 8c2bb61af9
commit deaa2242ca
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
# This is due to an upstream issue with RHEL7/CentOS 7 comptability with node-argon2
# See: https://github.com/cdr/code-server/pull/3422#pullrequestreview-677765057
npm_config_build_from_source=true
main() {
cd "$(dirname "${0}")/../.."
source ./ci/lib.sh

View File

@ -18,6 +18,9 @@ detect_arch() {
}
ARCH="${NPM_CONFIG_ARCH:-$(detect_arch)}"
# This is due to an upstream issue with RHEL7/CentOS 7 comptability with node-argon2
# See: https://github.com/cdr/code-server/pull/3422#pullrequestreview-677765057
npm_config_build_from_source=true
main() {
# Grabs the major version of node from $npm_config_user_agent which looks like