Skip to content

Commit 7408350

Browse files
committed
deps: declare go 1.18 in go.mod
This updates the go.{mod,sum} files to declare a version of Go that supports module graph pruning. The change allows consuming projects to avoid picking up dependencies on modules that ghw only uses for testing or for its CLI. Fixes #328 Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 parent 37ab771 commit 7408350

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

go.mod

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
module github.com/jaypipes/ghw
22

3-
go 1.15
3+
go 1.18
44

55
require (
66
github.com/StackExchange/wmi v1.2.1
77
github.com/ghodss/yaml v1.0.0
8+
github.com/jaypipes/pcidb v1.0.0
9+
github.com/pkg/errors v0.9.1
10+
github.com/spf13/cobra v0.0.3
11+
howett.net/plist v1.0.0
12+
)
13+
14+
require (
815
github.com/go-ole/go-ole v1.2.6 // indirect
916
github.com/inconshreveable/mousetrap v1.0.0 // indirect
10-
github.com/jaypipes/pcidb v1.0.0
1117
github.com/kr/pretty v0.1.0 // indirect
1218
github.com/mitchellh/go-homedir v1.1.0 // indirect
13-
github.com/pkg/errors v0.9.1
14-
github.com/spf13/cobra v0.0.3
1519
github.com/spf13/pflag v1.0.2 // indirect
1620
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
1721
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
1822
gopkg.in/yaml.v2 v2.4.0 // indirect
19-
howett.net/plist v1.0.0
2023
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
1515
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
1616
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
1717
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
18-
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
1918
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
2019
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
2120
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

0 commit comments

Comments
 (0)