File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import (
77 "net"
88 "os"
99 "os/exec"
10+ "os/signal"
1011 "path"
1112 "path/filepath"
1213 "sort"
1314 "strings"
1415 "time"
1516
1617 "github.com/BurntSushi/toml"
17- "github.com/sethvargo/go-signalcontext"
1818 log "github.com/sirupsen/logrus"
1919 "github.com/spf13/cobra"
2020 "golang.org/x/sys/unix"
@@ -217,7 +217,7 @@ current user.`,
217217 suiteRun .firstV6Net = firstV6Net
218218 suiteRun .logFormatVirter = logFormatVirter
219219
220- ctx , cancel := signalcontext . On ( unix .SIGINT , unix .SIGTERM )
220+ ctx , cancel := signal . NotifyContext ( context . Background (), unix .SIGINT , unix .SIGTERM )
221221 defer cancel ()
222222 start := time .Now ()
223223
Original file line number Diff line number Diff line change 11module github.com/LINBIT/vmshed
22
3- go 1.13
3+ go 1.17
44
55require (
66 github.com/BurntSushi/toml v1.2.1
77 github.com/apparentlymart/go-cidr v1.1.0
8- github.com/kr/text v0.2.0 // indirect
9- github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
10- github.com/sethvargo/go-signalcontext v0.2.1
118 github.com/sirupsen/logrus v1.9.0
129 github.com/spf13/cobra v1.6.1
1310 github.com/stretchr/testify v1.8.1
1411 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8
12+ )
13+
14+ require (
15+ github.com/davecgh/go-spew v1.1.1 // indirect
16+ github.com/inconshreveable/mousetrap v1.0.1 // indirect
17+ github.com/kr/text v0.2.0 // indirect
18+ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
19+ github.com/pmezard/go-difflib v1.0.0 // indirect
20+ github.com/spf13/pflag v1.0.5 // indirect
1521 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
22+ gopkg.in/yaml.v3 v3.0.1 // indirect
1623)
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA
1818github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
1919github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
2020github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
21- github.com/sethvargo/go-signalcontext v0.2.1 h1:HyuzDJGjAuWXIsJOmw8E3fJBj9IswvoWfM8N+pQLtuM =
22- github.com/sethvargo/go-signalcontext v0.2.1 /go.mod h1:re4Zg/SUpf7+wgTM/EeSDR/rV79uX+fJ26FpM8Wl7Qk =
2321github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0 =
2422github.com/sirupsen/logrus v1.9.0 /go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ =
2523github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA =
You can’t perform that action at this time.
0 commit comments