Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry is set differently for diffrent yarn versions #407

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/npm_registry/yarn_registry_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

NPM_REGISTRY_OVERRIDE="$1"

yarn config delete npmRegistryServer
yarn config delete enableStrictSsl
if [[ $(uname -m) == "s390x" ]]; then
# For yarn v1
yarn config delete registry
else
yarn config delete npmRegistryServer
fi

# Replace registry in yarn.lock
default_yarn_registry=`yarn config get npmRegistryServer`
Expand Down
8 changes: 6 additions & 2 deletions scripts/npm_registry/yarn_registry_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

NPM_REGISTRY_OVERRIDE="$1"

yarn config set npmRegistryServer ${NPM_REGISTRY_OVERRIDE}
yarn config set enableStrictSsl false
if [[ $(uname -m) == "s390x" ]]; then
# For yarn v1
yarn config set registry ${NPM_REGISTRY_OVERRIDE}
else
yarn config set npmRegistryServer ${NPM_REGISTRY_OVERRIDE}
fi

# Replace registry in existing yarn.lock
ui_plugin_repos=`rake update:print_engines | grep path: | cut -d: -f2`
Expand Down