Bug 1215997 - obs-service-go_modules fails with TypeError
Summary: obs-service-go_modules fails with TypeError
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Development (show other bugs)
Version: Leap 15.5
Hardware: All Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jeff Kowalczyk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-06 10:29 UTC by Jochen Breuer
Modified: 2023-10-07 18:44 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Breuer 2023-10-06 10:29:53 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.
Comment 1 Jochen Breuer 2023-10-07 18:44:05 UTC
I have tried the version from devel:languages:go on my 15.5 installation in the meantime. Seems to be working flawlessly.