How to backport latest go version?
Hello all,
I am currently using scarthgap branch and was not able to successfully backport latest go version 1.26.0.
I have created a custom layer (meta-dummy) and added all the files from recipes-devtools/go of Whinlatter branch. Yet, when I invoke bitbake recipe-name, I get the old version which is present as
❯ tmp/sysroots-components/x86_64/go-cross-armv8a/usr/lib/aarch64-tdx-linux/go/bin/go version go version go1.22.12 linux/amd64
I am able to set the preferred version in local.conf and it builds fine and I am able toverify the binary version for the host. PREFERRED_VERSION_go="1.26.0"
PREFERRED_VERSION_go-native="1.26.0"
PREFERRED_VERSION_go-cross="1.26.0"
Am I missing something here? Is it the right way to backport?
Best regards,
Navin
Sstate summary: Wanted 12 Local 5 Mirrors 0 Missed 7 Current 498 (41% match, 98% complete)############################################################################################################################################### | ETA: 0:00:00
Initialising tasks: 100% |#######################################################################################################################################################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: displaysettingstui-0.0.5+git-r0 do_compile: ExecutionError('/home/navin/Playground/build/tmp/work/armv8a-tdx-linux/displaysettingstui/0.0.5+git/temp/run.do_compile.349729', 1, None, None)
ERROR: Logfile of failure stored in: /home/navin/Playground/build/tmp/work/armv8a-tdx-linux/displaysettingstui/0.0.5+git/temp/log.do_compile.349729
Log data follows:
| DEBUG: Executing shell function do_compile | go: go.mod requires go >= 1.25.1 (running go 1.22.12) | go: go.mod requires go >= 1.25.1 (running go 1.22.12) | WARNING: exit code 1 from a shell command.
ERROR: Task (/home/navin/Playground/layers/meta-dummy/recipes-example/displaysettingstui/displaysettingstui_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1226 tasks of which 1225 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
Summary: 1 task failed:
/home/navin/Playground/layers/meta-dummy/recipes-example/displaysettingstui/displaysettingstui_git.bb:do_compile
log: /home/navin/Playground/build/tmp/work/armv8a-tdx-linux/displaysettingstui/0.0.5+git/temp/log.do_compile.349729
Summary: There was 1 ERROR message, returning a non-zero exit code.
Quoted 8 lines · On Thu Feb 19, 2026 at 4:38 PM CET, navinreddy23 via lists.openembedded.org…
Hello all,
I am currently using scarthgap branch and was not able to successfully backport latest go version 1.26.0.
I have created a custom layer (meta-dummy) and added all the files from recipes-devtools/go of Whinlatter branch. Yet, when I invoke bitbake recipe-name, I get the old version which is present as❯ tmp/sysroots-components/x86_64/go-cross-armv8a/usr/lib/aarch64-tdx-linux/go/bin/go version go version go1.22.12 linux/amd64
Quoted 6 lines
I am able to set the preferred version in local.conf and it builds fine and I am able toverify the binary version for the host. PREFERRED_VERSION_go="1.26.0"
PREFERRED_VERSION_go-native="1.26.0"
PREFERRED_VERSION_go-cross="1.26.0"Am I missing something here? Is it the right way to backport?
The usual solution is to use the mixin-layer for scarthgap/go:
https://git.yoctoproject.org/meta-lts-mixins/log/?h=scarthgap/go
See the note in https://docs.yoctoproject.org/dev/ref-manual/release-process.html#long-term-support-releases
Regards,
Signature · 2 lines
Yoann Congal Smile ECS
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Private: Re: [OE-core] How to backport latest go version?
(Re-adding the list in CC)
Quoted 11 lines · On Fri Feb 20, 2026 at 9:43 AM CET, navinreddy23 via Lists.Openembedded.Org…
Hello Yoann,
Perfect, it works well!
I have added it as a new layer, checked out the branch you specified and changed the preferred version to 1.25.7.Thank you.
Another issue I had with Scarhtgap recipetool is that the generated recipes do not work right away. While that was not true for Whinlatter poky build (with bitbake steup).
I see that go-mod-update-modules ( https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/go-mod-update-modules.bbclass?h=whinlatter ) is missing from the recipes. What is the best way to have these features in scarthgap branch?
Since backporting this class to scarthgap is not permitted (as it is a new feature). Maybe your best guess is to get it merged in the mixin layer?
Signature · 2 lines
Yoann Congal Smile ECS
A message that is not in the archive (sent off-list or not yet received): CACNOY6JqR97WvxzCxPcp_BMrcB3xr-MKUHGyDuH0OWcF3L=gzg@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Private: Re: [OE-core] How to backport latest go version?
Forwarding for better visibility.
Best regards,
Navin Reddy
Quoted 72 lines · Yoann Congal
Quoted 2 lines · Navin R
Thank you for the response!
Could you please provide some tips or pointers on how to go about it? Iam
Quoted 4 lines
very new to Yocto and open source.
❯ find . -name "*create_go*"
./openembedded-core/scripts/lib/recipetool/__pycache__/create_go.cpython-312.pyc
Quoted 5 lines
./openembedded-core/scripts/lib/recipetool/create_go.pyI believe that this file also needs to be updated to work with go-mod-update-modules. Not sure if that is going to be then part of meta-lts-mixins.
For this I have no idea but a general hunch.
You should really try to send this to the list (target the "group" if you use the website) instead of just me : I'm not the maintainer of the mixin layers (not even a user).
Quoted 8 lines
Best regards,
Navin ReddyOn Fri, Feb 20, 2026 at 10:00 AM Yoann Congal <[email protected]>
Quoted 9 lines · wrote:
Quoted 9 lines
(Re-adding the list in CC)
Quoted 4 lines · On Fri Feb 20, 2026 at 9:43 AM CET, navinreddy23 via Lists.Openembedded.Org…
Hello Yoann,
Perfect, it works well!
I have added it as a new layer, checked out the branch you specifiedand
Quoted 7 lines
Quoted 7 lines
changed the preferred version to 1.25.7.
Quoted 4 lines
Thank you.
Another issue I had with Scarhtgap recipetool is that the generated
recipes do not work right away.
Quoted 1 line
While that was not true for Whinlatter poky build (with bitbake
steup).
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
I see that go-mod-update-modules (
Quoted 1 line
Quoted 1 line
) is missing from the recipes. What is the best way to have these
features
Quoted 3 lines
Quoted 3 lines
in scarthgap branch?
Since backporting this class to scarthgap is not permitted (as it is a
new
Quoted 7 lines
Quoted 7 lines
feature). Maybe your best guess is to get it merged in the mixin layer?
--
Yoann Congal
Smile ECS--
Yoann Congal
Smile ECS