Open poupotte opened 9 years ago
I'm not sure about that one. It's a good simplification to force every app to have a master branch.
It does seem appropriate. The stable branch / development branch of a given repository should be an implementation detail, transparent to the end-user. As a Cozy app developer, I'd like to change my development branch to master
and have a stable
branch (or maybe even use tags). Users shouldn't need to have to uninstall/reinstall the app just because of this hosting detail.
It looks like I changed my mind since may :). Thank you @poupotte for the link.
@bnjbvr I understand the benefit. But having a standard in naming the master branch make things simpler for new developers. It doesn't harm the current developers to stick with the master branch.
@frankrousseau I am not sure we are talking about the same thing here, and it's ok :-) So when I was talking about the "end user", I had in mind "the user of the app". Currently for Kresus, the development branch is incoming
and the stable branch is master
. I would like the development branch to be master
and the stable branch to be stable
, instead (so that I can benefit from greenkeeper.io, for instance). As of today, for this to happen, 1) I would need to change the branch in the cozy-registry and 2) all Kresus' users would need to uninstall and reinstall the app (unless they're willing to have bugs sometimes). Having to do 2) is suboptimal and shouldn't require any user interaction -- it seems that it is something the controller could easily do.
If branch declared in cozy-registry has changed, home should change branch during update. See https://github.com/cozy/cozy-controller/issues/57