Skip to content

go.mod: bump go directive to 1.25.9 - #192

Merged
mramezani95 merged 1 commit into
sonic-net:masterfrom
xq9mend:upgrade/go-1.25.9-cve
Sep 10, 2026
Merged

go.mod: bump go directive to 1.25.9#192
mramezani95 merged 1 commit into
sonic-net:masterfrom
xq9mend:upgrade/go-1.25.9-cve

Conversation

@xq9mend

@xq9mend xq9mend commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Why I did it

Bump go directive from 1.15 to 1.25.9 to pick up Go stdlib security fixes.

Work item tracking
  • Microsoft ADO:

How I did it

Update go directive in go-server-server/go.mod and swsscommon/go.mod from 1.15 to 1.25.9.

How to verify it

Build go-server-server and confirm no build errors.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@xq9mend
xq9mend force-pushed the upgrade/go-1.25.9-cve branch from fba4a81 to c051fff Compare September 5, 2026 05:33
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@xq9mend
xq9mend force-pushed the upgrade/go-1.25.9-cve branch from c051fff to 3cd4b08 Compare September 5, 2026 05:42
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@xq9mend
xq9mend force-pushed the upgrade/go-1.25.9-cve branch from 3cd4b08 to 66bb1fb Compare September 5, 2026 05:49
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown

Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks!

---Powered by SONiC BuildBot

Bump go directive from 1.15 to 1.25.9 in go-server-server/go.mod and
swsscommon/go.mod.

Replace apt-installed golang-go (Go 1.19) in Dockerfile.build with
Go 1.25.9 downloaded from go.dev. Go 1.19 cannot parse
MAJOR.MINOR.PATCH go.mod format required by Go 1.21+.

Note: trixie-backports golang-go (1.26) cannot be used because the
CDN swsscommon debs link against SONiC-patched libnl versioned symbols
(@libnl_3) which are absent from native trixie libnl.

Tested: dpkg-buildpackage passes on bookworm with Go 1.25.9 tarball.

Signed-off-by: xq9mend <xq9mend@users.noreply.github.com>
@xq9mend
xq9mend force-pushed the upgrade/go-1.25.9-cve branch from 66bb1fb to b24f565 Compare September 5, 2026 07:05
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mramezani95

Copy link
Copy Markdown
Contributor

Are there required security fixes in Go 1.25.9 that are not in 1.24.4? restapi is based on Debian Trixie and the default Go version on Debian Trixie is 1.24.

@xq9mend

xq9mend commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

The sonic-slave-trixie was upgraded from 1.24 to 1.26 in commit a793a0d94 (#28894, merged Aug 14). So trixie's default 1.24 is no longer the slave baseline. Go 1.25.9 is consistent with the 1.25.9 used in the same CVE batch across sonic-mgmt-common, sonic-mgmt-framework, and sonic-alpine.

@mramezani95
mramezani95 self-requested a review September 10, 2026 00:49
@mramezani95
mramezani95 merged commit a45b9bc into sonic-net:master Sep 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants