Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
From 8.1.x in case we clone Drupal using git. The installation procedure requires to run composer install to download all the dependencies. Currently INSTALL.txt has this step missing. Mostly new developers would refer to INSTALL.txt to install Drupal so adding this information would be helpful.
Proposed resolution
* Add step to run composer install in INSTALL.txt
Remaining tasks
* Write Patch to fix the documentation
User interface changes
*None
API changes
*None
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#21 | interdiff.2762173.20.21.txt | 773 bytes | YesCT |
#21 | WonderWoman2-2762173-21.patch | 1007 bytes | YesCT |
#20 | interdiff-2762173-18-20.txt | 636 bytes | megansanicki |
#20 | WonderWoman2-2762173-20.patch | 1006 bytes | megansanicki |
#18 | interdiff-2762173-13-18.txt | 1.16 KB | megansanicki |
Comments
Comment #2
vermauv CreditAttribution: vermauv at Srijan | A Material+ Company commentedComment #3
cilefen CreditAttribution: cilefen commentedThis seems a possible duplicate of #2737773: Proper way to install Drupal, missing vendor folders, example.gitignore.
Comment #4
vermauv CreditAttribution: vermauv at Srijan | A Material+ Company commentedComment #5
a_thakur CreditAttribution: a_thakur as a volunteer and at Srijan | A Material+ Company commentedComment #7
artinst4 CreditAttribution: artinst4 as a volunteer commented@vermauv, thanks for your interest in this issue. Unassigning it since it seems that you aren't currently working on it.
@cilefen #3, I took a look at the other other issue. It seems to be talking mostly about a problem with .gitignore and a general procedure for install. A much larger scope.
I am using this issue specifically for adding the "composer install" step to the install.txt file.
Next, I will make a patch to add the step to the install.txt file.
Comment #8
artinst4 CreditAttribution: artinst4 as a volunteer commentedBased on the definition described in documentation, the category is "bug", so I've gone ahead and changed that.
See the criteria:
https://www.drupal.org/core/issue-category#bug
Comment #9
artinst4 CreditAttribution: artinst4 as a volunteer commentedBased on the documentation at https://www.drupal.org/core/d8-allowed-changes#disruption, this is also "non-disruptive". It involves a small change to an isolated text file.
Since this is a non-disruptive bug, the patch can be applied to 8.1.x. See here: https://www.drupal.org/core/d8-allowed-changes#patch.
Comment #10
artinst4 CreditAttribution: artinst4 as a volunteer commentedHere's a patch that reflects the changes to install.txt mentioned in comment #9.
Comment #11
mradcliffeThank you for the patch, @artinst4! Remember to set your issue status to "Needs Review", which will let other people know to review.
These lines should for the most part adhere to the 80-character line limit.
I looked at INSTALL.txt, and this document complies with the 80-character line limit except when a URL or code/command snippet is used such as on line 92.
I do not think this is accurate because an user should only need to run
composer install
.composer update
is used to update dependencies. This would cause the Drupal installation to potentially update its Symfony dependencies in composer.json.composer install
will install the version locked dependencies in the included composer.lock file.Comment #12
mathieso CreditAttribution: mathieso as a volunteer commentedNice work. Some suggestions.
1. Perhaps add text telling people why they need to run composer. Something like:
Drupal takes advantage of code from other open source projects. That code is not included with Drupal, and must be downloaded separately. You can use the command line tool Composer to do that for you.
2. Mention that the command "composer install" is run at the command line.
3. Perhaps remove the quotes from this:
install using "Composer",
To:
install using Composer,
It doesn't matter much, but the quotes will annoy some people who are strict about punctuation.
Comment #13
artinst4 CreditAttribution: artinst4 as a volunteer commentedThanks @mathieso and @mradcliffe. Here is an updated patch integrating some of your suggested edits. I am changing it to version 8.2.x, since it is also the environment I tested in.
Comment #14
artinst4 CreditAttribution: artinst4 as a volunteer commentedHere is the interdiff file for the recent change as well.
Comment #15
mradcliffeAwesome. The text and language is consistent with the rest of INSTALL.txt with the patch in #13.
Thank you for posting the interdiff.
Comment #16
mradcliffeWe also need the patches for 8.1.x and 8.3.x, @artinst4.
Comment #17
megansanicki CreditAttribution: megansanicki at Drupal Association commentedI tested this myself as a new contributor and ran into two problems.
1) Composer install did not work that is because composer needed to be installed globally and that was not mentioned in the instructions. https://getcomposer.org/doc/00-intro.md#globally
2) When I went to install composer, the instructions didn't tell me to be in the drupal directory so I it would not install.
I will do a reroll with these adjustments
Comment #18
megansanicki CreditAttribution: megansanicki at Drupal Association commentedHere's my patch. I made the two changes mentioned above and also fixed some line wrapping.
Comment #19
pwolanin CreditAttribution: pwolanin as a volunteer commentedLooks like it's 81 characters
Comment #20
megansanicki CreditAttribution: megansanicki at Drupal Association commentedAttached is my patch that corrects the text wrapping issue.
Comment #21
YesCT CreditAttribution: YesCT commented@megansanicki Thanks for sticking with this issue and addressing @pwolanin's feedback, and making the interdiff. interdiffs are really nice for reviewers.
this can be wrapped closer to 80 chars.
https://www.drupal.org/node/1354#drupal
"must wrap as close to 80 characters"
and checked, the phrase in quotes, Setting up repository for the first time, is the exact header where the instructions are at the url.
"you've" is a contraction which can be a bit difficult for non-first-english speakers.
Sorry, can't find the standard which says something about contractions.
---
must -> may
since people *could* not install it globally, but it's still a good recommendation as it's the common way.
Also I checked this url and the other, and they go to working correct places.
I one concern, which is: in the section about the tar, says to move the files (the mv command is not the best though), but I think it's ok to not have a section here. Adding the note about composer install is the really important thing and really needed.
Keeping at needs review for someone to check my changes. I think this is ready, if someone else does.
Comment #22
YesCT CreditAttribution: YesCT commentedI think this can go into 8.1.x and 8.2.x and 8.3.x (non-distruptive docs fix https://www.drupal.org/core/d8-allowed-changes#patch),
it applies to all.
Comment #23
YesCT CreditAttribution: YesCT commentedhad @pwolanin check this in person at the sprint. he says rtbc. :)
Comment #25
webchickSaving credit.
Comment #29
webchickOk, committed and pushed to all three branches! WOOT! GO MEGAN!!