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

Rename composer.json.dist to composer.json #9279

Merged
merged 2 commits into from
Apr 3, 2024
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
4 changes: 1 addition & 3 deletions .github/workflows/browser_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ jobs:
run: sudo apt-get -y install aspell aspell-en aspell-de

- name: Setup composer
run: |
cp composer.json-dist composer.json
composer require "laravel/dusk:^7.9" --no-update
run: composer require "laravel/dusk:^7.9" --no-update

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
tools: composer:v2
coverage: none

- name: Setup composer
run: |
cp composer.json-dist composer.json
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

Expand Down Expand Up @@ -64,7 +60,6 @@ jobs:

- name: Setup composer
run: |
cp composer.json-dist composer.json
composer require "kolab/net_ldap3:~1.1.1" --no-update
composer require "laravel/dusk:^7.9" --no-update
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
run: sudo apt-get -y install aspell aspell-en aspell-de hunspell-en-us

- name: Setup composer
run: |
cp composer.json-dist composer.json
composer require "kolab/net_ldap3:~1.1.4" --no-update
run: composer require "kolab/net_ldap3:~1.1.4" --no-update

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
Expand Down Expand Up @@ -88,9 +86,7 @@ jobs:
coverage: none

- name: Setup composer
run: |
cp composer.json-dist composer.json
composer require "kolab/net_ldap3:~1.1.4" --no-update
run: composer require "kolab/net_ldap3:~1.1.4" --no-update

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugins/rcsample
plugins/plugin_manager

# composer-related
composer.json
composer.phar
composer.lock
vendor
Expand Down
3 changes: 1 addition & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ REQUIREMENTS
- LDAP for LDAP addressbook support (optional)
- GD, Imagick, XMLWriter (optional: thumbnails generation, QR-code)
* PEAR and PEAR packages distributed with Roundcube or external.
See composer.json-dist for the list of required packages.
See composer.json for the list of required packages.
* php.ini options:
- memory_limit > 16MB
- file_uploads enabled (for uploading attachments and import files)
Expand All @@ -40,7 +40,6 @@ INSTALLATION
you have to install PHP and javascript dependencies.
2.1. Install PHP dependencies using composer:
- get composer from https://getcomposer.org/download/
- rename the composer.json-dist file into composer.json
- if you want to use LDAP address books, enable the LDAP libraries in your
composer.json file by moving the items from "suggest" to the "require"
section (remove the explanation texts after the version!).
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ all: clean complete dependent framework

complete: roundcubemail-git
cp -RH roundcubemail-git roundcubemail-$(VERSION)
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config platform.php $(PHP_VERSION))
(cd roundcubemail-$(VERSION); php /tmp/composer.phar require "kolab/net_ldap3:~1.1.4" --no-update --no-install)
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset suggest.kolab/net_ldap3)
Expand Down
1 change: 0 additions & 1 deletion UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ it on a unix system, you need to do the following operations by hand:
by running `php composer.phar update --no-dev`.
4b. Install/update dependencies using composer:
- get composer from https://getcomposer.org/download/
- rename the composer.json-dist file into composer.json
- if you want to use LDAP address books, enable the LDAP libraries in your
composer.json file by moving the items from "suggest" to the "require"
section (remove the explanation texts after the version!).
Expand Down
3 changes: 2 additions & 1 deletion bin/installto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ if (strtolower($input) == 'y') {
}

foreach (['index.php', 'config/defaults.inc.php', 'composer.json-dist', 'jsdeps.json', 'CHANGELOG.md', 'README.md', 'UPGRADING', 'LICENSE', 'INSTALL'] as $file) {
$command = 'rsync -a --out-format=%n ' . INSTALL_PATH . "{$file} {$target_dir}/{$file}";
$source_file = $file === 'composer.json-dist' ? 'composer.json' : $file;
$command = 'rsync -a --out-format=%n ' . INSTALL_PATH . "{$source_file} {$target_dir}/{$file}";

if (file_exists(INSTALL_PATH . $file) && (system($command, $ret) === false || $ret > 0)) {
rcube::raise_error("Failed to execute command: {$command}", false, true);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/password/README
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
-------------

Driver to use the Zxcvbn library to check password strength. Requires zxcvbn-php library.
The library is not distributed with Roundcube (see composer.json-dist).
The library is not distributed with Roundcube (see composer.json).
Note: Required PHP's memory_limit >= 24M.

Set $config['password_zxcvbn_min_score'] to define minimum acceptable password strength score.
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ INSTALLATION
------------
Copy all files of this directory to your project or install it in the default
include_path directory of your webserver. Some classes of the framework require
external libraries. See composer.json-dist for the list of required packages.
external libraries. See composer.json for the list of required packages.


USAGE
Expand Down