Bug 15483 - devtool modify crashes for recipes using go.bbclass
Summary: devtool modify crashes for recipes using go.bbclass
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium major
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-05-13 15:02 UTC by Ola Nilsson
Modified: 2026-05-21 15:17 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ola Nilsson 2024-05-13 15:02:40 UTC
devtool modify go-helloworld

fails with 

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

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

900129cbdf25297a42ab5dbd02d1adbea405c935 devtool: add support for git submodules

which collides with the source dir path manipulation from go.bbclass.
Comment 1 Randy MacLeod 2024-05-16 14:44:28 UTC
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.
Comment 2 Paul Barker 2026-05-21 15:17:53 UTC
This was resolved, as Randy mentioned a patch was merged to master back in 2024.