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

Drop composer.lock from the committed files list #1106

Closed
wants to merge 5 commits into from

Conversation

Slamdunk
Copy link
Collaborator

As discussed in #1105 (comment) , the drop of the config.platform entry from the composer.json needs the composer.lock to be dropped as well to avoid invalid lock file updates from renovatebot.

Since we already test against both lowest and highest and the locked are the lowest anyway thanks to renovatebot itself, this should be fine.

@Slamdunk Slamdunk added the CI label Feb 19, 2025
@Slamdunk Slamdunk added this to the 6.0.0 milestone Feb 19, 2025
@Ocramius
Copy link
Collaborator

IMO this patch is a problem for reproducible builds, and for identifying regressions in dependency changes: lowest/latest are spearheads, while locked is a stable/verified build that should be preserved, from a design PoV.

@Slamdunk
Copy link
Collaborator Author

Facts are:

  1. config.platform blocks us from testing against deps that require different PHP versions
  2. renovatebot doesn't play well with config.platform specified but composer.lock uncommitted

My opinion is: yes we lose reproducible builds, so what? The scenarios are:

  1. build goes red on locked but green on highest: composer.lock is useless
  2. build goes green on locked but red on highest: we already catch this with renovatebot

Am I missing something?

@Ocramius
Copy link
Collaborator

Ocramius commented Feb 19, 2025

It aids you as a maintainer right now (frustration of current moment), but it hinders others hopping in and contributing, including @renovatebot.

From my PoV, reproducible builds are way more important than being able to try latest/greatest: you leave packages sit around for half a year (because life happens) and you can go back to them and collaborate, while non-reproducible builds are always an unhappy adventure.

@lcobucci
Copy link
Owner

I fully agree with @Ocramius here. Lock files are important not only for CI but also for the library's development.

It's way more frustrating to have things randomly failing locally due to unexpected dependency updates.
Please, let's not proceed with this.

@Slamdunk
Copy link
Collaborator Author

Then please approve #1094 so I don't have to spend 10 minutes every time figuring out what binaries I need on my computer to have a green make run

@Slamdunk Slamdunk closed this Feb 19, 2025
@Slamdunk Slamdunk deleted the drop_composer_lock branch February 19, 2025 13:38
@Slamdunk Slamdunk removed this from the 6.0.0 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants