File tree 5 files changed +13
-9
lines changed
5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
13
13
build :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
18
18
- name : Set up Go
19
- uses : actions/setup-go@v4
19
+ uses : actions/setup-go@v5
20
20
with :
21
- go-version : " 1.21.x "
21
+ go-version : " 1.22 "
22
22
23
23
- name : Install dependencies
24
24
run : go get .
Original file line number Diff line number Diff line change 1
1
build :
2
- go build -o diode diode.go
2
+ go build -o diode -ldflags= " -X main.SemVer=0.0.5 " diode.go
3
3
4
4
test :
5
5
go test -v
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ import (
19
19
"gopkg.in/yaml.v2"
20
20
)
21
21
22
+ var (
23
+ SemVer string
24
+ )
25
+
22
26
type Configuration struct {
23
27
Input struct {
24
28
IP string
@@ -267,7 +271,7 @@ func main() {
267
271
Aliases : []string {"v" },
268
272
Usage : "Print the version of the diode CLI" ,
269
273
Action : func (vCtx * cli.Context ) error {
270
- fmt .Println (">> diode version 0.0.4" )
274
+ fmt .Println (">> diode version " + SemVer )
271
275
return nil
272
276
},
273
277
},
Original file line number Diff line number Diff line change 1
1
module github.com/acep-uaf/data-diode
2
2
3
- go 1.21.6
3
+ go 1.22.0
4
4
5
5
require (
6
6
github.com/eclipse/paho.mqtt.golang v1.4.3
@@ -14,6 +14,6 @@ require (
14
14
github.com/gorilla/websocket v1.5.1 // indirect
15
15
github.com/russross/blackfriday/v2 v2.1.0 // indirect
16
16
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect
17
- golang.org/x/net v0.20 .0 // indirect
17
+ golang.org/x/net v0.21 .0 // indirect
18
18
golang.org/x/sync v0.6.0 // indirect
19
19
)
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho=
12
12
github.com/urfave/cli/v2 v2.27.1 /go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ =
13
13
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e h1:+SOyEddqYF09QP7vr7CgJ1eti3pY9Fn3LHO1M1r/0sI =
14
14
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e /go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8 =
15
- golang.org/x/net v0.20 .0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo =
16
- golang.org/x/net v0.20 .0 /go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY =
15
+ golang.org/x/net v0.21 .0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4 =
16
+ golang.org/x/net v0.21 .0 /go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44 =
17
17
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ =
18
18
golang.org/x/sync v0.6.0 /go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk =
19
19
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
You can’t perform that action at this time.
0 commit comments