<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15483</bug_id>
          
          <creation_ts>2024-05-13 15:02:40 +0000</creation_ts>
          <short_desc>devtool modify crashes for recipes using go.bbclass</short_desc>
          <delta_ts>2026-05-21 15:17:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>5.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ola Nilsson">ola.x.nilsson</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99006</commentid>
    <comment_count>0</comment_count>
    <who name="Ola Nilsson">ola.x.nilsson</who>
    <bug_when>2024-05-13 15:02:40 +0000</bug_when>
    <thetext>devtool modify go-helloworld

fails with 

Traceback (most recent call last):
  File &quot;/mnt/build/poky/scripts/devtool&quot;, line 350, in &lt;module&gt;
    ret = main()
          ^^^^^^
  File &quot;/mnt/build/poky/scripts/devtool&quot;, line 337, in main
    ret = args.func(args, config, basepath, workspace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/mnt/build/poky/scripts/lib/devtool/standard.py&quot;, line 907, in modify
    (stdout, _) = bb.process.run(&apos;git submodule --quiet foreach --recursive  \&apos;echo `git rev-parse devtool-base` $PWD\&apos;&apos;, cwd=srctree)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/mnt/build/poky/bitbake/lib/bb/process.py&quot;, line 189, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of &apos;git submodule --quiet foreach --recursive  &apos;echo `git rev-parse devtool-base` $PWD&apos;&apos; failed with exit code 128:
fatal: No url found for submodule path &apos;src/golang.org/x/example&apos; in .gitmodules

This was not the case on nanbield, I think it&apos;s changes introduced in OE-Core  

900129cbdf25297a42ab5dbd02d1adbea405c935 devtool: add support for git submodules

which collides with the source dir path manipulation from go.bbclass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99016</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-05-16 14:44:28 +0000</bug_when>
    <thetext>While there is a somewhat substandard patch merged on master to address this bug, it really needs a test case and likely some polishing before being backported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105533</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-05-21 15:17:53 +0000</bug_when>
    <thetext>This was resolved, as Randy mentioned a patch was merged to master back in 2024.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>