Open johanneskastl opened 1 year ago
The reason is that you fall into the following path first: https://github.com/openSUSE/obs-service-go_modules/blob/54cd3833dfd6475a4c643730e7a1ad84c6f678ba/go_modules#L94-L105
This detection is so trivial that it finds the wrong folder IMHO.
In my case this finds the .github
folder of the project:
┬─[enno@tower:~/S/E/h/node-semver]─[16:00:32]
╰─>$ osc service mr
Already up to date.
2f63e48a80857993b9dfa5139c801650eb694d3b
INFO:obs-service-go_modules:Running OBS Source Service: obs-service-go_modules
INFO:obs-service-go_modules:Using archive /home/enno/Sources/External-Build-Service/home:SchoolGuy:jitsi/node-semver/node-semver-0.0.0.1639577940.2f63e48.obscpio
INFO:obs-service-go_modules:Extracting /home/enno/Sources/External-Build-Service/home:SchoolGuy:jitsi/node-semver/node-semver-0.0.0.1639577940.2f63e48.obscpio to /tmp/tmpiwrnryzk
INFO:obs-service-go_modules:Switching to /tmp/tmpiwrnryzk
INFO:obs-service-go_modules:Detected basename node-semver-0.0.0.1639577940.2f63e48/.github from archive
ERROR:obs-service-go_modules:File go.mod not found under /tmp/tmpiwrnryzk/node-semver-0.0.0.1639577940.2f63e48/.github
Aborting: service call failed: /usr/lib/obs/service/go_modules --compression zst --archive node-semver-*.obscpio --outdir /home/enno/Sources/External-Build-Service/home:SchoolGuy:jitsi/node-semver/tmpvxc0hk9s.go_modules.service
I think this is a duplicate of #36
I could workaround by excluding the examples
directory.
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/QJoly/kubeconfig-merger</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="exclude">examples</param>
<param name="revision">v0.1.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
</service>
</services>
Not sure why it is looking in the
examples
subdirectory?