IRC logs for #farmOS, 2021-02-14 (GMT)

2021-02-13
2021-02-15
TimeNickMessage
[16:47:22]<symbioquine[m]>Of all the contrib modules under https://github.com/farmOS, why does only https://github.com/farmOS/farm_forest/tree/2.x have a `composer.json` file in its 2.x branch? How are the others intended to be installed?
[16:57:11]<mstenta[m]>We will need to add `composer.json` files to all of them - agreed symbioquine
[16:57:24]<symbioquine[m]>ah, ok cool
[16:57:28]<mstenta[m]>Ultimately, I'd like to host them all on drupal.org as well
[16:58:08]<mstenta[m]>d.o provides two things:
[16:58:08]<mstenta[m]>1) It serves as a packagist instance so you can do `composer require drupal/[module]`
[16:58:08]<mstenta[m]>2) It hooks into localize.drupal.org
[16:58:33]<symbioquine[m]>Yeah, was just writing "Main benefits being easy installation via Drush and easy moving of issues around between them and farmOS core?"
[16:58:37]<mstenta[m]>But it might also make sense to host them on packagist.org itself as well
[16:58:50]<symbioquine[m]>yeah, I'd imagine both would be good
[16:59:23]<mstenta[m]>ah yea you can use drush to download from drupal.org too - i always forget that :-)
[17:00:06]<symbioquine[m]>I think it makes it take only one command to get/enable the module...
[17:00:28]<symbioquine[m]>e.g. `drush en devel`
[17:01:01]<mstenta[m]>it was really interesting to have the Drupal Distros meetup call immediately preceding the farmOS monthly call... one of the big questions that was asked on the distro call (by one of the drupal.org infrastructure guys) was: does anyone need tarballs anymore (and therefore does drupal.org need to support creating and hosting tarballs of distros for Drupal 8/9... which it does NOT yet support)
[17:01:19]<mstenta[m]>and then hearing from botlfarm re: shared hosting right after!
[17:01:34]<symbioquine[m]>haha, yeah
[17:01:38]<mstenta[m]>i said on the drupal call that yes, we do still want to have tarballs... but we don't need drupal.org to do that for us
[17:02:09]<mstenta[m]>i sketched up a github action for creating our release tarballs for 2.x: https://github.com/farmOS/farmOS/blob/2.x/.github/workflows/package-rele...
[17:02:11]<symbioquine[m]>Hopefully the ubiquity of package managers will put pressure on shared hosting platforms to provide better tooling though too
[17:02:24]<mstenta[m]>mm yea
[17:02:48]<symbioquine[m]>or they'll just lose out to container hosting platforms eventually...
[17:03:13]<mstenta[m]>oh so getting back to the composer.json thing... `farm_forest` was the first one we tried that with and actually ran into a "gotcha" that is worth noting...
[17:03:41]<mstenta[m]>https://www.drupal.org/project/farm_forest/issues/3190919
[17:04:27]<mstenta[m]>tl;dr: don't include the `farm:` prefix in your `*.info.yml` file's `dependencies` declaration
[17:05:08]<mstenta[m]>(of course, that only matters if you're hosting the packages on drupal.org)
[17:05:11]<symbioquine[m]>oh, huh... I may have that issue with my farmOS_wfs module then; https://github.com/symbioquine/farmOS_wfs/blob/8d1877eb19efb4ca7e4d9196a...
[17:05:21]<symbioquine[m]><mstenta[m] "(of course, that only matters if"> Which I'm not.
[17:05:45]<mstenta[m]>ah yea - if you tried to host that on drupal.org you'd hit the same issue we did
[17:06:05]<mstenta[m]>in general, drupal.org's support for distros never really kept up with the D8/9 changes
[17:06:32]<mstenta[m]>(not really a major impact for us)
[17:07:04]<mstenta[m]>it was cool to see what other distro maintainers are doing on the drupal call :-)
[17:07:21]<symbioquine[m]>I guess I should remove the prefix either way if the convention right now is to omit it...
[17:07:22]<mstenta[m]>they were very excited/interested in some of the things we're doin with farmOS :-)
[17:07:33]<mstenta[m]>mm yea no harm in removing it
[17:07:33]<symbioquine[m]>Cool, like what?
[17:07:52]<mstenta[m]>we're going to keep it in farmOS core, because PHP codesniffer complains without it
[17:08:03]<mstenta[m]>(and it works fine there)
[17:08:44]<mstenta[m]>we didn't have enough time to go into more questions and discussion unfortunately - the drupal call was a 2 hour one, but farmOS monthly started half way through it
[17:09:11]<mstenta[m]>farmOS was "distro of the month" 😄 so we gave a little demo/overview for everyone
[17:09:33]<mstenta[m]>(this was the first distro meetup call lol, so "distro of the month" isn't saying much haha - but we were proud to be the first) :-D
[17:09:48]<symbioquine[m]>Yeah :)