Skip to content

Commit

Permalink
Merge pull request #290 from fromanirh/update-toolchain
Browse files Browse the repository at this point in the history
toolchain update
  • Loading branch information
jaypipes committed Nov 23, 2021
2 parents 004673d + e90cb81 commit b1b38be
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: set up golang
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: format
run: ./hack/check-format.sh
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.14', '1.15', '1.16' ]
go: [ '1.15', '1.16', '1.17' ]
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
runs-on: macos-10.15
strategy:
matrix:
go: [ '1.15' ] # TODO: no 1.16 atm
go: [ '1.16' ]
steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 2 additions & 0 deletions cmd/ghw-snapshot/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build linux
// +build linux

//
// Use and distribution licensed under the Apache license version 2.
//
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jaypipes/ghw

go 1.12
go 1.15

require (
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d
Expand Down
2 changes: 2 additions & 0 deletions pkg/baseboard/baseboard_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/bios/bios_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
1 change: 1 addition & 0 deletions pkg/block/block_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// See the COPYING file in the root project directory for full text.
//

//go:build linux
// +build linux

package block
Expand Down
2 changes: 2 additions & 0 deletions pkg/block/block_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !darwin && !windows
// +build !linux,!darwin,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/chassis/chassis_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/cpu/cpu_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/cpu/cpu_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux
// +build !linux

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/gpu/gpu_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
1 change: 1 addition & 0 deletions pkg/linuxpath/path_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// See the COPYING file in the root project directory for full text.
//

//go:build linux
// +build linux

package linuxpath_test
Expand Down
2 changes: 2 additions & 0 deletions pkg/memory/memory_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
1 change: 1 addition & 0 deletions pkg/net/net_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// See the COPYING file in the root project directory for full text.
//

//go:build linux
// +build linux

package net
Expand Down
2 changes: 2 additions & 0 deletions pkg/net/net_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/pci/pci_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux
// +build !linux

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/product/product_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down
2 changes: 2 additions & 0 deletions pkg/snapshot/clonetree_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux
// +build !linux

//
// Use and distribution licensed under the Apache license version 2.
//
Expand Down
2 changes: 2 additions & 0 deletions pkg/topology/topology_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build !linux && !windows
// +build !linux,!windows

// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
Expand Down

0 comments on commit b1b38be

Please sign in to comment.