< 022024-08-03⋎04 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
15:51symbioquine[m]Another downside to not having a lockfile saved somewhere permanent is that 3.2.3 no longer passes due to new depedency versions (and CodeSniffer deprecations) getting picked up: github.com/symbioquine/farmOS/actions/ru
15:54symbioquine[m] * Another downside to not having a lockfile saved somewhere permanent is that 3.2.3 no longer passes due to new dependency versions (and deprecations observed by CodeSniffer) getting picked up: github.com/symbioquine/farmOS/actions/ru
16:47mstenta[m]Committing composer.lock for tagged releases in farmOS/composer-project seems like a logical next step to me
16:48symbioquine[m]mstenta[m]: Agreed, but I'm not blocked on that since I have this work-around: github.com/farmOS/farmOS/pull/864#issuec
16:48mstenta[m]Committing composer.lock for every commit to 3.x is tricker, but I don't know if there's a strong need for that
16:49mstenta[m](The trickiness is that we need to commit it to the composer-project, NOT to the farmOS repo itself.)
16:50mstenta[m]Afaik committing composer.lock in the farmOS repo itself wouldn't provide any value
16:50symbioquine[m]Yeah, I think just having reproducible tagged releases would be a great compromise/step-forward
16:51mstenta[m]Well that PR I drafted a while back proposed a simple way of doing that. It had a few other things in it though, so maybe we just need to reroll and reconsider the simplest bit of it
16:53mstenta[m]Tl;dr: it modifies our GitHub action (in farmOS core repo) so that when a tag is pushed, it automatically makes a commit and tag on the composer-project repo. It pushes the tag but does NOT push the main branch to that repo. Thus we end up with composer.lock committed ONLY to tags in that repo, but not to the main branch itself.
16:55symbioquine[m]mstenta[m]: Cool
16:55mstenta[m](The tag commit ONLY adds composer.lock)
16:55symbioquine[m]Is it an issue if the tags are orphaned? i.e. the tagged commits aren't on any branch?
16:56mstenta[m]I don't think there's any problem with that
16:56mstenta[m]I think this is roughly the same approach that Drupal core's own "recommended-project" uses
16:58mstenta[m]Notice how there is only one commit in the history of composer.lock on the 11.0.0 tag: github.com/drupal/recommended-project/co
16:59mstenta[m]I've seen this "hanging tag" approach on other projects too
17:00mstenta[m]It's a clever way to add stuff that is only needed for releases, without needing to add/revert it in the main branch
17:02mstenta[m]With farmOS/composer-project it would be interesting, though, because we very rarely update that repo, so we'd end up having lots of tags "branching" off of the same "3.x" commit
17:03mstenta[m]Might look weird when visualized, but conceptually nothing wrong with it, I don't think
17:06mstenta[m]Further reading: stackoverflow.com/questions/14613540/do-
17:07*uploaded an image: (212KiB) < matrix.org/_matrix/media/v3/download/mat >
17:09mstenta[m]Hmm I'm on my phone and for some reason I can't see your image
17:09symbioquine[m]Not critical. Just output of git log --oneline --abbrev-commit --all --graph --decorate --color in drupal/recommended-project
17:10symbioquine[m]Shows each of those tags with a single commit but not on any branch
17:10mstenta[m]Oh interesting. Wish I could see :-)
17:11symbioquine[m]Clicking on the commit for any of those tags shows a warning banner:
17:11*uploaded an image: (12KiB) < matrix.org/_matrix/media/v3/download/mat >
17:12symbioquine[m]"This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository."
17:12symbioquine[m]But I guess that's not a problem per-se
17:13mstenta[m]Yea saw that
17:13mstenta[m]I've noticed GitHub does that in various situations
17:14mstenta[m]I imagine GitHub has rules for which commits to keep/purge
17:14mstenta[m]Just like Git itself
17:14mstenta[m]Tags are always "keep" :-)
17:14mstenta[m]I think GitHub keeps commits for PRs even when the branch hets deleted too

< 022024-08-03⋏04 >