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

dependency-type: development updates even production dependencies in composer ecosystem #9650

Open
1 task done
janedbal opened this issue May 2, 2024 · 1 comment
Open
1 task done
Labels
L: git:submodules Git submodules L: php:composer Issues and code for Composer T: bug 🐞 Something isn't working

Comments

@janedbal
Copy link

janedbal commented May 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

composer

Package manager version

No response

Language version

No response

Manifest location and content before the Dependabot update

dependabot.yml content

Updated dependency

phpstan/phpstan

What you expected to see, versus what you actually saw

The actual meaning of dependency-type: development is poorly documented, but I'd assume it should update only dev deps and not production deps, otherwise it would be useless.

Here is a PR that shows it updates even production dependencies (phpstan/phpstan in this case).

I believe dependabot should execute composer update dev/dependency1 dev/dependency2 dev/dependency3 dev/dependency4 (list all dev depenendencies from require-dev) to achieve only dev deps being updated.

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

Smallest manifest that reproduces the issue

No response

@janedbal janedbal added the T: bug 🐞 Something isn't working label May 2, 2024
@github-actions github-actions bot added L: git:submodules Git submodules L: php:composer Issues and code for Composer labels May 2, 2024
@janedbal
Copy link
Author

janedbal commented May 2, 2024

Also, the update of phpstan/phpstan is not listed in the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: git:submodules Git submodules L: php:composer Issues and code for Composer T: bug 🐞 Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant