-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Ignore developer packages #13701
Ignore developer packages #13701
Conversation
There is a part of me that wants to say to not do this. Until this repo uses Composer The One Right Way™ the repo has to have only the production dependencies checked in. If you add those paths to the gitignore, it becomes far too easy to screw up and check in the autoloader with dev dependencies. composer install
git status
On branch staging
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: libraries/vendor/composer/autoload_classmap.php
modified: libraries/vendor/composer/autoload_files.php
modified: libraries/vendor/composer/autoload_namespaces.php
modified: libraries/vendor/composer/autoload_psr4.php
modified: libraries/vendor/composer/autoload_real.php
modified: libraries/vendor/composer/autoload_static.php
modified: libraries/vendor/composer/installed.json For me having all of those extra paths in the |
Agree, but during development, when you want to locally commit stuff, you don't just want to make an install --no-dev first, commit the stuff and then do a composer install again. |
Well then this project needs to stop having this repository in a state where it can be cloned and installed with zero effort. That's why the vendor directory is checked in, it is viewed as too much effort to suggest contributors might need to run a So with that said, there should be no point in a commit log that the autoloader contains the development dependencies. As annoying as it is, you do have to go through the |
Would it be an option to check during install if the vendor directory is available, when not a composer install is done. Like that we can remove it in github but ship it with the download packages of joomla.org? |
In general, no.
Not to mention it breaks the workflow a lot use of downloading the PR branch from GitHub versus using git to apply patches. This isn't a knock on anyone, but there is a high number of contributors who don't make consistent use of tools like git, Composer, or anything else you'd run on a command-line interface. |
Bad stuff :( This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13701. |
I have tested this item ✅ successfully on 13520a9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13701. |
When doing actually in staging a
composer install
all the new developer packages are showing up ingit status
. This ignore additions will hide them.Basically a maintainer review.