| Summary: | Git protocol should be deprecated | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Evadeflow <evadeflow> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Evadeflow
2019-02-28 16:11:05 UTC
I'm afraid I strongly disagree with your position here. Its perfectly reasonable for the project to use the git protocol and I suspect there are quite some number of http git servers which are not "smart". If we picked "http" as the default, people would complain it should be "https", some sites would support one and not to other and so on, we could never win anyway. What I do agree with is supporting http mirroring better, we should have an easy to use setting which would turn ;protocol=git into an attempt at protocol=http and protocol=https. There is an open bug for this. It may even nearly work today, I've just never had a chance to sit down and figure out the mirror url syntax or looked at what fixes may be needed to make that work. Help on such a patch would be very welcome over in that other bug. > If we picked "http" as the default, people would complain it should be "https", some sites would support one and not to other and so on, we could never win anyway. Fair point, I hadn't even considered that there are people who still download source code using HTTP in the 21st century. To be clear, I was proposing that the default be `protocol=https`. (And yes, there would probably be some who would complain that it should be `protcol=http`, although... giving them much credence seems inadvisable.) > What I do agree with is supporting http mirroring better... > There is an open bug for this. Do you mean bug #3306? If so, LOL—I totally forgot I filed that! Funny that I'm still complaining about it *six years* later. If you can confirm that #3306 is the right bug, I'll try to prepare a patch. Feel free to close this bug if you think it's the wrong way to address the issue. In hindsight, it does seem like an attempt to put a Band-Aid on a larger, more general issue, namely: Bitbake's defaults aren't "opinionated" enough to allow non-experts to write recipes that won't cause problems for some (possibly *large*) subset of their intended audience. Bitbake allows me to do all sorts of things that I learn only later are A Bad Idea™. Sometimes, I wish it would stop me, but... perhaps a linter for recipes (see bug #13206) is a better solution. We have discussions in three related bugs here. Basically rather than update the metadata to fit some particiular firewall config or set of circumstances, I'd prefer to do this through our mirrors syntax. There may be some tweaking needed to make the mirrors syntax handle this but that should be possible. Closing some bugs so we link to one bug. *** This bug has been marked as a duplicate of bug 9738 *** |