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

Composer: avoid writing a lock file #218

Merged
merged 2 commits into from May 3, 2024

Conversation

fredden
Copy link
Member

@fredden fredden commented Apr 19, 2024

Proposed Changes

When working with this repository as a developer, we should be using the latest compatible packages. By writing a lock file for Composer, we may get into a state where we are "stuck" on an older version of a dependency. This change avoids such a situation by telling Composer to not write out a lock file in the project.

Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fredden for this PR! I agree this is a good change.

To allow for merging this PR, however, a small tweak need to be made to the securitycheck.yml workflow which relies on the composer.lock file.
I think an extra step needs to be added to the workflow, before the "compose install" step, to remove this key from the config. that should allow for the workflow to continue to work and be useful.

Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@jrfnl
Copy link
Member

jrfnl commented May 3, 2024

Merging. The build failures against PHP 8.4 are unrelated to this PR and will be addressed separately via PR #219.

@jrfnl jrfnl merged commit 94d27f7 into PHPCSStandards:main May 3, 2024
75 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants