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

fix: Improve composer.lock behavior with ignore-cache #260

Open
wants to merge 5 commits into
base: v3
Choose a base branch
from

Conversation

flagbrad
Copy link

@flagbrad flagbrad commented Sep 7, 2024

Description

Fixes a bug where composer.lock is not honored if ignore-cache is set to true. Also, the recently added require-lock-file option had not been incorporated into tests and documentation, so added a test and docs (and fixed small typo in CONTRIBUTING)

Motivation and context

Fixes #259. Discovered by our team when we decided to ignore cache and then noticed deployment's composer packages did not match our local dev packages.

How has this been tested?

Unfortunately, I know of no way to test action.yml without actually merging it and then trying it as a GitHub action.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

@flagbrad flagbrad requested a review from ramsey as a code owner September 7, 2024 16:04
@flagbrad flagbrad changed the title fix: Improve composer.lock behavior with --ignore-cache (#259) fix: Improve composer.lock behavior with ignore-cache (#259) Sep 7, 2024
@flagbrad flagbrad changed the title fix: Improve composer.lock behavior with ignore-cache (#259) fix: Improve composer.lock behavior with ignore-cache Sep 7, 2024
Also caused a test to fail because it wasn't expecting this output. I'm not sure how this test ever passed before, but this seems to be the correct thing to do.
@flagbrad
Copy link
Author

flagbrad commented Sep 8, 2024

@ramsey I think I fixed the problem that caused this test run to fail. I was seeing this locally, but assumed it was a problem with my version of expect or something. All tests are passing locally now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When ignore-cache is true, composer update runs instead of composer install
1 participant