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

Add pre/postinstall scripts to prevent 'npm install' failure #16454

Closed
wants to merge 202 commits into from

Conversation

jmgaya
Copy link

@jmgaya jmgaya commented May 15, 2024

TL;DR;

Just fix the npm install script

Explanation

The recommended Node Version for this repository is 10.15.1, which uses npm 6.4.1 under the hood (see .nvmrc).

When trying to install dependencies directly from Git repositories, this version of NPM uses internally the git: protocol, which performs operations such as:

  • /usr/bin/git ls-remote -h -t git://github.com/<organization>/<repository>.git
  • git clone --depth=1 -q -b master git://github.com/<organization>/<repository>.git <some-cache-directory>

However, Github dropped support for this protocol a while ago, hence npm install fails always.

The less elegant, but most pragmatic solution @Josmorsot and I found during the journey is to redirect every git: protocol request through https: by modifying the NPM configuration locally

Shylpx and others added 30 commits October 26, 2021 13:02
…of github.com:CartoDB/cartodb into feature/sc-172043/reef-admin-can-t-set-map-to-private
…of github.com:CartoDB/cartodb into feature/sc-172043/reef-admin-can-t-set-map-to-private
moicalcob and others added 18 commits August 1, 2022 16:23
…-randomly-2

Log pg_locks when there is a timeout during a sync table importation
* increase cloud build timeout

* increase timeout

* downgrade rubocop version

* Update rubocop.yml

* rubocop 1.17.0

* Update rubocop.yml

* revert version
…ities-when-users-delete-themselves

[sc230232] Avoid deleting a user if it has shared entities
@jmgaya jmgaya requested a review from a team May 15, 2024 10:10
Copy link
Contributor

@Josmorsot Josmorsot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this looks harmless, but let's talk before moving on

@jmgaya jmgaya changed the base branch from master to cloud-native May 15, 2024 11:17
@jmgaya
Copy link
Author

jmgaya commented May 15, 2024

PR was created on top of master, but this will be re-created on top of cloud-native

@jmgaya jmgaya closed this May 15, 2024
@VictorVelarde
Copy link
Contributor

If this goes against cloud-native branch, just for our do-catalog bundle, I'm fine with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants