Skip to content

Commit

Permalink
fix(deps): Do not ship psr/log
Browse files Browse the repository at this point in the history
It is provided by server's 3rdparty. Shipping another copy can lead to a
dependency hell.

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Feb 17, 2025
1 parent 506dcac commit 2f8f9bd
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 55 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ jobs:
strategy:
matrix:
php-versions: ['8.3']
nextcloud-versions: ['master']
nextcloud-versions: ['chore/mail-bisect-6e1d9a26209ec5524fbc2fb9c7cbb53315e64d72']
db: ['sqlite', 'mysql', 'pgsql']
cache: ['nocache']
include:
- php-versions: 8.1
nextcloud-versions: master
nextcloud-versions: 'chore/mail-bisect-6e1d9a26209ec5524fbc2fb9c7cbb53315e64d72'
db: 'sqlite'
cache: 'redis'
- php-versions: 8.2
nextcloud-versions: master
nextcloud-versions: 'chore/mail-bisect-6e1d9a26209ec5524fbc2fb9c7cbb53315e64d72'
db: 'mysql'
cache: 'redis'
- php-versions: 8.2
Expand Down
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ SPDX-FileCopyrightText = "2021 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["vendor-bin/cs-fixer/composer.json", "vendor-bin/cs-fixer/composer.lock", "vendor-bin/mozart/composer.json", "vendor-bin/mozart/composer.lock", "vendor-bin/openapi/composer.*", "vendor-bin/phpunit/composer.json", "vendor-bin/phpunit/composer.lock", "vendor-bin/rector/composer.json", "vendor-bin/rector/composer.lock"]
path = ["vendor-bin/*/composer.json", "vendor-bin/*/composer.lock"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021-2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"sabberworm/php-css-parser": "^8.7.0",
"youthweb/urllinker": "^2.0"
},
"provide": {
"psr/log": "^1.0.4|^2|^3"
},
"require-dev": {
"fig/log-test": "^1.1",
"psalm/phar": "^5.26.1",
Expand Down
52 changes: 1 addition & 51 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<extraFiles>
<directory name="vendor" />
<directory name="lib/Vendor" />
<directory name="vendor-bin/psalm-stubs" />
</extraFiles>
<issueHandlers>
<UndefinedAttributeClass>
Expand Down
5 changes: 5 additions & 0 deletions vendor-bin/psalm-stubs/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"psr/log": "^3.0"
}
}
69 changes: 69 additions & 0 deletions vendor-bin/psalm-stubs/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f8f9bd

Please sign in to comment.