Download raw body.
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github
On Sat, Feb 24, 2024 at 07:12:56PM +0100, Omar Polo wrote: > Thomas Frohwein <tfrohwein@fastmail.com> wrote: > > *ping* > > > > This can save enough work with ports that have multiple submodules that > > I think it might help porters' work. Of course this can be obtained > > from the GitHub source, too, but having it in the ports tree would help > > visibility and accountability, especially to decrease the barrier for > > working with complex ports. Re-attaching for convenience. > > I've quickly tested it and it seems to work as advertised. In my > experience there are not that many ports needing to use submodules (or > maybe i was just lucky ;-) but nevertheless it's nice to have something > in the port infrastructure to automatize that bit. Seems also quite > simple too, which is promising. > > With a few more lines of code to grok the .gitmodules ini file, we could > also be able to avoid using the github api, which would make make even > easier to extend it for other forges. From my experience with this, .gitmodules doesn't contain all the information to identify the submodule target. But this is definitely intended to be extendable to other forges, see the possible branching options with VALID_TEMPLATES. > I don't have lots of experience with perl but it reads fine to me. Oh, > Readonly.pm is not in base though :P Thanks for catching that. That's an easy fix and I'm attaching the updated script. (version controlled at: https://github.com/rfht/gen-dist-tuple) > So, fwiw I'd welcome something like this in the port infrastructure. > > crazy idea: what about hooking something like this into portgen and then > allow to do `portgen github johnfactotum/foliate'? :-) I don't have much experience with portgen, but DIST_TUPLE really only gets you the dist files and is language agnostic. It would seem to me that a lot more is needed to generate a port draft.
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github
gen-dist-tuple - script to generate submodule information for DIST_TUPLE from github