Skip to content

Commit

Permalink
Merge pull request #67 from moderepo/upgrade_go
Browse files Browse the repository at this point in the history
upgrade go
  • Loading branch information
shigmas committed Apr 5, 2024
2 parents 34f3f44 + 2ddcade commit 65d0eed
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -8,22 +8,22 @@ on:
jobs:
build:
name: go-vet-and-test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13.3
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.13.3
go-version: 1.21.5
id: go
- name: Cache go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: v3-go-modules
restore-keys: v3-go-modules
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/moderepo/device-sdk-go/v2

go 1.12
go 1.21

require (
github.com/stretchr/testify v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions v3/examples/echo/main.go
Expand Up @@ -13,7 +13,7 @@ import (
"syscall"
"time"

"github.com/moderepo/device-sdk-go/v3"
mode "github.com/moderepo/device-sdk-go/v3"
)

var (
Expand Down Expand Up @@ -139,7 +139,7 @@ func main() {
pingWg.Add(1)
runPingLoop(loopCtx, &pingWg, client)

c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGTERM, syscall.SIGINT)

sig := <-c
Expand Down
4 changes: 2 additions & 2 deletions v3/examples/mutual_tls_echo/main.go
Expand Up @@ -13,7 +13,7 @@ import (
"syscall"
"time"

"github.com/moderepo/device-sdk-go/v3"
mode "github.com/moderepo/device-sdk-go/v3"
)

var (
Expand Down Expand Up @@ -141,7 +141,7 @@ func main() {
pingWg.Add(1)
runPingLoop(loopCtx, &pingWg, client)

c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGTERM, syscall.SIGINT)

sig := <-c
Expand Down
4 changes: 2 additions & 2 deletions v3/examples/websocket_echo/main.go
Expand Up @@ -13,7 +13,7 @@ import (
"syscall"
"time"

"github.com/moderepo/device-sdk-go/v3"
mode "github.com/moderepo/device-sdk-go/v3"
)

var (
Expand Down Expand Up @@ -168,7 +168,7 @@ func main() {
pingWg.Add(1)
runPingLoop(loopCtx, &pingWg, client)

c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGTERM, syscall.SIGINT)

sig := <-c
Expand Down
7 changes: 6 additions & 1 deletion v3/go.mod
@@ -1,10 +1,15 @@
module github.com/moderepo/device-sdk-go/v3

go 1.14
go 1.21

require (
github.com/gorilla/websocket v1.5.0
github.com/stretchr/testify v1.4.0
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)

0 comments on commit 65d0eed

Please sign in to comment.