SDK Extension for golang not found in CI nightly gitlab builds

I am trying to add golang compilation to my nightly flatpak build. But I get this error:

error: Requested extension org.freedesktop.Sdk.Extension.golang/x86_64/master not installed

The main change was adding a new sdk-extensions stanza:

runtime: org.gnome.Platform
sdk: org.gnome.Sdk
sdk-extensions:
  - org.freedesktop.Sdk.Extension.golang

I’m not sure where to file a ticket about this, because I’m not sure what the root cause likely is. Does the gnome-nightly repo need a master version? Should some part of this be trying to install 25.08 instead? Should I be doing something special in my CI config?

Thanks for any pointers.

I think you’re running into a known flatpak (or flatpak-builder) bug that just hasn’t been addressed for years. It falsely tells you it wants to use the same branch on the extension as the sdk, but it needs the same version as the freedesktop-sdk the current gnome runtime is based on.

Does installing the 25.08 golang extension resolve this?

I was going to say “ah well this is in GNOME GitLab CI, where I don’t have control” but then I realized maybe I do.

With the following code in .gitlab-ci.yml:

  before_script:
    - flatpak install --user -y org.freedesktop.Sdk.Extension.golang//25.08

It now installs the extension and the build works fine. Thanks for the prod in this direction!

1 Like