Skip to content

Commit

Permalink
go-dep: use go >= 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Apr 11, 2024
1 parent ce9e27d commit 7bcd309
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.21"
go-version-file: "./backend/go.mod"
cache-dependency-path: "./backend/go.sum"
- name: Test
run: |
cd backend
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.21.1"
go-version-file: "./backend/go.mod"
cache-dependency-path: "./backend/go.sum"

# build
- name: Run GoReleaser
Expand Down
3 changes: 1 addition & 2 deletions backend/cronjobs/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
logger.Error.Println(err)
return
}
for _, device := range devices {
dev := device
for _, dev := range devices {
wake_cron := dev.GetString("wake_cron")
wake_cron_enabled := dev.GetBool("wake_cron_enabled")
shutdown_cron := dev.GetString("shutdown_cron")
Expand Down
4 changes: 2 additions & 2 deletions backend/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/seriousm4x/upsnap

go 1.21
go 1.22

toolchain go1.21.1
toolchain go1.22.2

require (
github.com/labstack/echo/v5 v5.0.0-20230722203903-ec5b858dab61
Expand Down

0 comments on commit 7bcd309

Please sign in to comment.