<?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>15472</bug_id>
          
          <creation_ts>2024-04-23 07:02:00 +0000</creation_ts>
          <short_desc>devtool add fails to create tags when tag.gpgSign is set</short_desc>
          <delta_ts>2026-06-16 00:03:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>4.3.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>90degs2infty</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ccasciato</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>saisneha196</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <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>98768</commentid>
    <comment_count>0</comment_count>
    <who name="">90degs2infty</who>
    <bug_when>2024-04-23 07:02:00 +0000</bug_when>
    <thetext>On a fresh install of the eSDK, `devtool add` fails when the user has `tag.gpgSign` enabled in the git config.

```
$ git config --get tag.gpgSign
true
$ devtool add &lt;some-repo&gt;
NOTE: Starting bitbake server...
NOTE: Starting bitbake server...
INFO: Fetching &lt;some-repo&gt;...
WARNING: You are using a local hash equivalence server but have configured an sstate mirror. This will likely mean no sstate will match from the mirror. You may wish to disable the hash equivalence use (BB_HASHSERVE), or use a hash equivalence server alongside the sstate mirror.
Loading cache: 100% |##########################################################################################| Time: 0:00:00
Loaded 1844 entries from dependency cache.
Parsing recipes: 100% |########################################################################################| Time: 0:00:01
Parsing of 913 .bb files complete (912 cached, 1 parsed). 1845 targets, 61 skipped, 0 masked, 0 errors.

Summary: There was 1 WARNING message.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################################################################| Time: 0:00:00
Sstate summary: Wanted 1 Local 0 Mirrors 0 Missed 1 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
INFO: Fetching submodules...
INFO: Using default source tree path &lt;some-path&gt;
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)... (06:18:29.073018)
NOTE: Reconnecting to bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)... (06:18:29.073018)
NOTE: Retrying server connection (#1)... (06:18:29.073018)
NOTE: Starting bitbake server...
Traceback (most recent call last):
  File &quot;/path/to/esdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 349, in &lt;module&gt;
    ret = main()
          ^^^^^^
  File &quot;/path/to/esdk/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 336, in main
    ret = args.func(args, config, basepath, workspace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/path/to/esdk/layers/build/scripts/lib/devtool/standard.py&quot;, line 235, in add
    setup_git_repo(srctree, args.version, &apos;devtool&apos;, d=tinfoil.config_data)
  File &quot;/path/to/esdk/layers/build/scripts/lib/devtool/__init__.py&quot;, line 234, in setup_git_repo
    bb.process.run(&apos;git tag -f %s&apos; % basetag, cwd=repodir)
  File &quot;/path/to/esdk/layers/build/bitbake/lib/bb/process.py&quot;, line 189, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of &apos;git tag -f devtool-base&apos; failed with exit code 1:
Vim: Error reading input, exiting...

Vim: Finished.
error: There was a problem with the editor &apos;nvim&apos;.
Please supply the message using either -m or -F option.
```

The reason is - at least to my understanding of git&apos;s documentation at [1] - that `git tag` defaults to a lightweight tag only when not asked to sign the tag:

&gt; To create a lightweight tag, don’t supply any of the -a, -s, or -m options, just provide a tag name

With `tag.gpgSign` being set, git defaults to an annotated tag. This then forces git into asking for a tag message, which in turn breaks `devtool add`&apos;s execution.

To fix the issue, simply force git to not sign the commit (I guess auto-generated tags shouldn&apos;t be signed anyway) by adding `--no-sign` to above command, i.e. execute `git tag --no-sign -f devtool-base`. See the docs at [2] for additional details.

[1] https://git-scm.com/book/en/v2/Git-Basics-Tagging
[2] https://git-scm.com/docs/git-tag</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98914</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 14:35:58 +0000</bug_when>
    <thetext>Can you send a patch to the list?

As an aside, we need to fix the general problem of people&apos;s git configs conflicting with the assumptions that devtool needs but that&apos;s out of scope for this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101830</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:07:10 +0000</bug_when>
    <thetext>Bulk move of all unassigned 5.2 medium importance bugs to 5.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104835</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-26 15:23:03 +0000</bug_when>
    <thetext>Add the --no-sign to git-tag command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105863</commentid>
    <comment_count>4</comment_count>
    <who name="Sai Sneha">saisneha196</who>
    <bug_when>2026-06-15 06:45:13 +0000</bug_when>
    <thetext>I would like to work on this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105864</commentid>
    <comment_count>5</comment_count>
    <who name="Sai Sneha">saisneha196</who>
    <bug_when>2026-06-15 06:53:00 +0000</bug_when>
    <thetext>Confirmed fixed in commit b5c84b07b8. Dropping this as no further work needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105892</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-16 00:03:00 +0000</bug_when>
    <thetext>Sai, 

I agree that it&apos;s fixed.

For next time, some tips / requests:

Put a link in such as the one in question:

https://git.openembedded.org/openembedded-core/commit/?id=b5c84b07b87eafb4f68f7662b6cf26d8b73e3247

a commit ID assumes that it&apos;s oe-core which is usually true.
The link makes things easier for anyone who might want confirm the fix.

Also, as is the case, here, you can just resolve the defect.
People will get an email and re-open it if there&apos;s a problem.
Other than the automated tests, we don&apos;t have a dedicated test team
to run QA on each commit.

Thanks,
../Randy</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>