openSUSE / openSUSE-git

3 stars 5 forks source link

`osc build` don't really work with git workflow.. #33

Closed mimi1vx closed 4 months ago

mimi1vx commented 1 year ago

osc build command needs --no-service to successful build

~ ❯❯❯ osc co devel:languages:python python-cloup
A    devel:languages:python
A    devel:languages:python/python-cloup
~ ❯❯❯ cd devel:languages:python
~/devel:languages:python ❯❯❯ cd python-cloup
..ython/python-cloup [factory|✚1…1] ❯❯❯ ll
celkem 228
-rw-r--r-- 1 mimi users 225273 20. říj 10.09 cloup-3.0.2.tar.gz
-rw-r--r-- 1 mimi users   2492 20. říj 10.09 python-cloup.changes
-rw-r--r-- 1 mimi users   1927 20. říj 10.09 python-cloup.spec
..ython/python-cloup [factory|✚1…1] ❯❯❯ osc build --download-api-only  -x mc -x vim  --clean
Building python-cloup.spec for openSUSE_Tumbleweed/x86_64
ERROR: cloup-3.0.2.tar.gz mentioned in spec file is not tracked.
(W) Attention, .gitattributes is not mentioned in spec files as source or patch.
Aborting: service call failed:  /usr/lib/obs/service/source_validator --outdir /home/mimi/devel:languages:python/python-cloup/tmp3wilqijo.source_validator.service
Source service run failed!
mcepl commented 1 year ago

You have certainly wrongly branched from OBS to git. See https://src.opensuse.org/mcepl_tools/gosc/src/branch/master/git-obranch for my version of git obranch command. (You are missing .gitignore and there was old version of tarball in the git).

However, I have to agree, even when I do everything right (see my branch https://src.opensuse.org/mcepl/python-cloup which should be IMHO correct), I get the same error:

tumbleweed-pkg/t/d/python-cloup (factory)$ oscb --clean
Building python-cloup.spec for openSUSE_Tumbleweed/x86_64
ERROR: cloup-3.0.2.tar.gz mentioned in spec file is not tracked.
Aborting: service call failed:  /usr/lib/obs/service/source_validator --outdir /tmp/devel:languages:python/python-cloup/tmpx41zd0yp.source_validator.service
Source service run failed!
tumbleweed-pkg/t/d/python-cloup (factory)$ 
mcepl commented 1 year ago

Actually https://src.opensuse.org/pool/python-cloup/pulls/10 (when probably rebased) could help. Second problem you had was that the tarball was directly in the repository not via git lfs (do you have it installed?).

mcepl commented 4 months ago

@mimi1vx Is this still relevant? Shouldn’t this be closed?

mimi1vx commented 4 months ago

@mcepl why not