Skip to content

Commit

Permalink
Lower required Go version to 1.22 to fix OS build (home-assistant#223)
Browse files Browse the repository at this point in the history
Host Go in Buildroot version used by OS is currently 1.22.x. Since Go >=
1.21 actually checks that the used version is at least the one defined
in go directive, build of os-agent package fails. Lower to 1.22, as the
latest version is not required anyway.
  • Loading branch information
sairon authored Feb 28, 2025
1 parent 5e71717 commit 59a514b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

env:
GOLANG_VERSION: "1.24"
GOLANG_VERSION: "1.22"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/home-assistant/os-agent

go 1.24
go 1.22

require (
github.com/coreos/go-systemd/v22 v22.5.0
Expand Down

0 comments on commit 59a514b

Please sign in to comment.