PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 9, 2022

[FIXED] How to fix unintentional BC break in composer package?

 February 09, 2022     composer-php, php     No comments   

Issue

We're sticking to semantic versioning with our packages. We unintentionally created a BC break in minor version. Some people are already using that version.

What is a good way to fix this mistake? Ideally we'd prevent composer from ever considering the offending version, but still allow to install if it's locked on it, so that we don't break other people's code...

Is there a best practice to do that?


Solution

I'd immediately release next patch version which fixes this mistake and point it out with bold text in readme. It is the same immutable principle as in git revert. It makes the less damage imo. It may only cost developers one composer update to fix.



Answered By - Filip Halaxa
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing