* How to backport latest go version?
@ 2026-02-19 15:38 navinreddy23
2026-02-19 15:49 ` [OE-core] " Yoann Congal
0 siblings, 1 reply; 4+ messages in thread
From: navinreddy23 @ 2026-02-19 15:38 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1.1: Type: text/plain, Size: 776 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 972 bytes --]
[-- Attachment #2: log.txt --]
[-- Type: text/plain, Size: 1776 bytes --]
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [OE-core] How to backport latest go version? 2026-02-19 15:38 How to backport latest go version? navinreddy23 @ 2026-02-19 15:49 ` Yoann Congal [not found] ` <48326.1771577023423291484@lists.openembedded.org> 0 siblings, 1 reply; 4+ messages in thread From: Yoann Congal @ 2026-02-19 15:49 UTC (permalink / raw) To: navinreddy23, openembedded-core On Thu Feb 19, 2026 at 4:38 PM CET, navinreddy23 via lists.openembedded.org wrote: > 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? 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, -- Yoann Congal Smile ECS ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <48326.1771577023423291484@lists.openembedded.org>]
* Re: Private: Re: [OE-core] How to backport latest go version? [not found] ` <48326.1771577023423291484@lists.openembedded.org> @ 2026-02-20 9:00 ` Yoann Congal [not found] ` <CACNOY6JqR97WvxzCxPcp_BMrcB3xr-MKUHGyDuH0OWcF3L=gzg@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Yoann Congal @ 2026-02-20 9:00 UTC (permalink / raw) To: navinreddy23; +Cc: openembedded-core (Re-adding the list in CC) On Fri Feb 20, 2026 at 9:43 AM CET, navinreddy23 via Lists.Openembedded.Org wrote: > 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? -- Yoann Congal Smile ECS ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CACNOY6JqR97WvxzCxPcp_BMrcB3xr-MKUHGyDuH0OWcF3L=gzg@mail.gmail.com>]
[parent not found: <DGJOKQ7XZ0AN.1UKSUPQOVW00S@smile.fr>]
* Re: Private: Re: [OE-core] How to backport latest go version? [not found] ` <DGJOKQ7XZ0AN.1UKSUPQOVW00S@smile.fr> @ 2026-02-20 14:15 ` Navin R 0 siblings, 0 replies; 4+ messages in thread From: Navin R @ 2026-02-20 14:15 UTC (permalink / raw) To: openembedded-core; +Cc: Yoann Congal [-- Attachment #1: Type: text/plain, Size: 2239 bytes --] Forwarding for better visibility. Best regards, Navin Reddy On Fri, Feb 20, 2026 at 10:27 AM Yoann Congal <yoann.congal@smile.fr> wrote: > On Fri Feb 20, 2026 at 10:10 AM CET, Navin R wrote: > > Thank you for the response! > > Could you please provide some tips or pointers on how to go about it? I > am > > very new to Yocto and open source. > > > > ❯ find . -name "*create_go*" > > > ./openembedded-core/scripts/lib/recipetool/__pycache__/create_go.cpython-312.pyc > > ./openembedded-core/scripts/lib/recipetool/create_go.py > > > > I 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). > > > > > Best regards, > > Navin Reddy > > > > > > > > > > On Fri, Feb 20, 2026 at 10:00 AM Yoann Congal <yoann.congal@smile.fr> > wrote: > > > >> (Re-adding the list in CC) > >> > >> On Fri Feb 20, 2026 at 9:43 AM CET, navinreddy23 via > >> Lists.Openembedded.Org wrote: > >> > 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? > >> > >> -- > >> Yoann Congal > >> Smile ECS > >> > >> > > > -- > Yoann Congal > Smile ECS > > [-- Attachment #2: Type: text/html, Size: 3408 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-20 14:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-19 15:38 How to backport latest go version? navinreddy23
2026-02-19 15:49 ` [OE-core] " Yoann Congal
[not found] ` <48326.1771577023423291484@lists.openembedded.org>
2026-02-20 9:00 ` Private: " Yoann Congal
[not found] ` <CACNOY6JqR97WvxzCxPcp_BMrcB3xr-MKUHGyDuH0OWcF3L=gzg@mail.gmail.com>
[not found] ` <DGJOKQ7XZ0AN.1UKSUPQOVW00S@smile.fr>
2026-02-20 14:15 ` Navin R
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox