-
Notifications
You must be signed in to change notification settings - Fork 112
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
Use native composer home #31
Conversation
Totally agree this is a far better default than the one we had before. I'm just wondering whether the ENV COMPOSER_HOME=$(composer config --global home)
ENV PATH=$COMPOSER_HOME/vendor/bin:$PATH |
We would chasing our own tail, a bit 😛 I understand if you want to retain backward compatibility, and I'll change the code if you ask me that. Said that, if it would be up to me, I would drop it at all: the important thing is only the |
Uhm… no, I see the problem there. It was a mistake to set that variable in the first place. 😞 As a "standard" practice, I don't think anybody should read that value from the environment directly except Composer itself, so I guess it's fine to just drop it. 👍 |
Thanks again for your contribution! |
So now there is a compatibility problem. |
Yes, it is an intended behaviour |
Argh… @Nemo64, sorry about that. I didn't think about that use case. Now that you point that out, it comes up to my mind that I need to update volumes paths in a couple CI pipelines as well. 😞 Is yours a cache that's expensive to be recreated? |
Would creating a symlink from |
Likely yes. @fquffio I think
We can partially revert this change to have |
Ok, sorry again about that. I'm in a meeting right now, so I can't address this problem in a proper way. I'm therefore temporarily reverting the merge commit, and opening an issue to restore the behaviour as of this PR. |
I don't think that everything needs to be compatible indefinitely. |
Ideally we would adhere to SemVer. This is difficult, though, because PHP is already using SemVer for its releases, and our semantic versioning would conflict with that. Adding a suffix to the tag would do the work. We might tag each commit with |
Docker images release cycle can't be strictly compared to libary ones. Debian style refers only to fix backporting, so it's not our case. If you'd like to have SemVer you should use your version first: Dunno... I would concentrate my energies in fixing (my, I'm sorry) this issue without versioning it. Documenting all this would be good though. |
Right, if the issue can be resolved without breaking compatibility than go for it. Still, I kind of dislike having mutable tags which may or may not break old projects in feature releases. Or having to tell my coworkers "do a pull before starting, there is a new extension we need". I think i'll create a separate issue for that. |
Some services like Bitbucket use default configuration for the most common usages, for example the default cache points to the default composer cache dir:
https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
Altering the defaults parameters of composer with a custom
$COMPOSER_HOME
generates friction in the integration.Ok, nothing that can't be solved with additional configuration, but if we can use defaults I think we should 😃