Bugzilla – Bug 1215997
obs-service-go_modules fails with TypeError
Last modified: 2023-10-07 18:44:05 UTC
When trying to use obs-service-go_modules, it fails with the following stack trace: INFO:obs-service-go_modules:go mod download Traceback (most recent call last): File "/usr/lib/obs/service/go_modules", line 276, in <module> main() File "/usr/lib/obs/service/go_modules", line 229, in main cp = cmd_go_mod("download", go_mod_dir) File "/usr/lib/obs/service/go_modules", line 183, in cmd_go_mod cp = run(["go", "mod", cmd], cwd=dir, capture_output=True, text=True) File "/usr/lib64/python3.6/subprocess.py", line 423, in run with Popen(*popenargs, **kwargs) as process: TypeError: __init__() got an unexpected keyword argument 'capture_output' Aborting: service call failed: /usr/lib/obs/service/go_modules --outdir /home/brejoc/repos/home:brejoc/joker/tmpqvxk4996.go_modules.service Apparently this was already reported on Github: https://github.com/openSUSE/obs-service-go_modules/issues/22 And was fixed with this PR: https://github.com/openSUSE/obs-service-go_modules/pull/15 The version in devel:languages:go (see changes from Mon Feb 27 10:51:08 UTC 2023) has the fix, but this hasn't been promoted to 15.5.
I have tried the version from devel:languages:go on my 15.5 installation in the meantime. Seems to be working flawlessly.