Archived
1
0

revert: @node-rs/argon2 -> node-argon2 (#4829)

* revert: partial revert of 723469ab5b

This reverts part of the changes introduced in refactor: migrate from argon2 ->
@node-rs/argon2 (#4733)

Switching to @node-rs/argon2 introduced bugs that we couldn't solve due to
limitations in npm.

see here
https://github.com/coder/code-server/issues/4804#issuecomment-1030338395
This commit is contained in:
Joe Previte
2022-02-04 15:52:42 -07:00
committed by GitHub
parent 00224fa73a
commit 25b1340771
8 changed files with 369 additions and 102 deletions

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
export npm_config_build_from_source=true
main() {
# Grabs the major version of node from $npm_config_user_agent which looks like