Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot vendor kubectl-really-get-all #37

Open
johanneskastl opened this issue Oct 4, 2023 · 1 comment
Open

Cannot vendor kubectl-really-get-all #37

johanneskastl opened this issue Oct 4, 2023 · 1 comment

Comments

@johanneskastl
Copy link

I tried to package this:
https://github.com/vfx1b/kubectl-really-get-all

It does not have a release, hence I tried to use the latest commit 0ffd9ac.

This is the _service file:

<services>
  <service name="obs_scm" mode="manual">
    <param name="url">https://github.com/vfx1b/kubectl-really-get-all</param>
    <param name="scm">git</param>
    <param name="exclude">.git</param>
    <param name="revision">0ffd9ac</param>
    <param name="versionformat">v0.0.1.%cd.%h</param>
    <param name="changesgenerate">enable</param>
  </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">
    <param name="archive">kubectl-really-get-all-v0.0.1.20230328.0ffd9ac.obscpio</param>
    <param name="basename">kubectl-really-get-all</param>
  </service>
</services>

But it fails, because it cannot find the go.mod:

Already up to date.
0ffd9ac12eb00c41c7c0b6504990ac7c849ef039
INFO:obs-service-go_modules:Running OBS Source Service: obs-service-go_modules
INFO:obs-service-go_modules:Using archive kubectl-really-get-all-v0.0.1.20230328.0ffd9ac.obscpio
INFO:obs-service-go_modules:Extracting kubectl-really-get-all-v0.0.1.20230328.0ffd9ac.obscpio to /tmp/tmp4ogx0ta7
INFO:obs-service-go_modules:Switching to /tmp/tmp4ogx0ta7
ERROR:obs-service-go_modules:File go.mod not found under /tmp/tmp4ogx0ta7/kubectl-really-get-all
Aborting: service call failed:  /usr/lib/obs/service/go_modules --archive kubectl-really-get-all-v0.0.1.20230328.0ffd9ac.obscpio --basename kubectl-really-get-all --outdir /home/Buildservice/Branches/Branch_devel_kubic/kubectl-really-get-all/tmpk9csjfuu.go_modules.service

Any ideas?

@SchoolGuy
Copy link

I am having the same problem and the issue here is according to my debugging the service will try and unpack the obscpio with the version. As such the basename is missing the version.

It is very inconsistent that archive is accepting a glob with a regex and basename not:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants