-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
chore: Update installation requirements in CONTRIBUTING.md #27878
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of on Unix
, it should be on Debian-based systems
@Crustum7 installing just |
Is there something missing if you followed the prerequisites in https://github.com/nodejs/node-gyp#on-unix? |
@alexsch01 well as @MikeMcC399 mentioned here, |
I made a PR that supersedes this one: #27879 |
If
so I support adding it explicitly to the list of requirements to build Cypress. My understanding of reading https://github.com/nodejs/node-gyp#on-unix is that it is not specifically mentioned there. If I have misinterpreted that, then I'd be grateful for an explanation.
https://github.com/nodejs/node-gyp#on-unix On Unix
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I believe that is unnecessary, since CONTRIBUTING > Requirements refers to
These generic instructions are admittedly difficult to follow. Perhaps there should be a cook-book with some explicit instructions for operating systems commonly used to build Cypress, like for instance Ubuntu 22.04 LTS? I would in any case support merging this PR to simply add |
GCC is not enough for Cypress to build successfully
|
Thanks for your research and explanation. I will check again on a clean install of Ubuntu if |
My PR has g++ (this includes gcc) and make required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The requirements for running node-gyp are supposed to be covered in the requirements section referring to python
. In practice the instructions are too vague and too open to interpretation, apart from the explicit mention of make
, so I suggest to make the text look like this, with an note especially for Debian-based systems (including Ubuntu):
Co-authored-by: Mike McCready <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @Crustum7! 👍🏻
I'm confident that this is correct advice now and should help anybody trying to set up a new Debian-based system to build Cypress from source.
It would certainly have helped me when I first did it last year and was struggling with trial-and-error methods!
Just for future reference if you create any new PR, there are some instructions in https://github.com/cypress-io/cypress/blob/develop/CONTRIBUTING.md#pull-requests about naming the branch. It's not good practice to make edits in the default |
@@ -207,6 +207,7 @@ You must have the following installed on your system to contribute locally: | |||
- [`Node.js`](https://nodejs.org/en/) (See the root [.node-version](.node-version) file for the required version. You can find a list of tools on [node-version-usage](https://github.com/shadowspawn/node-version-usage) to switch the version of [`Node.js`](https://nodejs.org/en/) based on [.node-version](.node-version).) | |||
- [`yarn`](https://yarnpkg.com/en/docs/install) | |||
- [`python`](https://www.python.org/downloads/) (since we use `node-gyp`. See their [repo](https://github.com/nodejs/node-gyp) for Python version requirements.) | |||
- Note for Debian-based systems: `python` is pre-installed.<br>`sudo apt install g++ make cmake` meets the additional requirements to run `node-gyp` in the context of building Cypress from source. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually nope, make should still be in the install command
Sorry for the confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've hidden the latest suggestion. I'm not an apt
expert. I have just been checking that the instructions work on Ubuntu.
Just as a sanity cross-check, the following instructions will build Cypress on a freshly-installed Ubuntu sudo apt install git g++ cmake make curl
curl -L https://bit.ly/n-install | bash
. ~/.bashrc
cd ~
git clone https://github.com/cypress-io/cypress
cd cypress
n auto
npm install yarn -g
yarn |
g++
andmake
#27846Additional details
CMake is needed to set up the developer environment
Steps to test
na
How has the user experience changed?
na
PR Tasks
cypress-documentation
?type definitions
?