openSUSE / obs-service-go_modules

OBS Source Service to download, verify, and vendor Go module dependency sources
GNU General Public License v2.0
19 stars 18 forks source link

Support OBS scmsync: populate vendor/ in subdirectory and skip source archive creation #45

Open mcepl opened 7 months ago

mcepl commented 7 months ago

I have a couple of packages where I follow the master branch of the upstream project, and it is rather inconvenient that I have to git commit, git push, and osc services remoterun, osc up to get new *.obscpio, so I can run osc service manualrun.

See https://build.opensuse.org/package/show/home:mcepl/vis and https://build.opensuse.org/package/show/home:mcepl/aerc.

(and of course I have to have those stupid commit “Re-vendor” all over the package history)

mcepl commented 7 months ago

Technically, I would imagine these two additional possible values:

jfkw commented 7 months ago

Thanks for raising the server side OBS SCM integration use case. I haven't yet used these modes but would like to support them fully.

Your follow up comment clarifies the idea behind this mode.

Of your two examples:

I presume vis does not currently have other configuration to call obs-service-go_modules. This is a package we'd like to use go_modules with if it does the right thing in scm_sync modes.

For aerc, would the plan be to run go_modules in one of the server side modes e.g. buildtime?

mcepl commented 7 months ago

vis has osc meta prj element https://git.cepl.eu/git/packaging/vis-pkg and no _service definition.

Yes, you are right, sorry, vis is probably not relevant to this ticket.

For aerc, would the plan be to run go_modules in one of the server side modes e.g. buildtime?

I am not sure, I want to be able to build the package both in OBS and locally (osc build). If I would have vendor.tar.* build only on-the-fly and not cached anywhere, …? Perhaps? Why not?