minor fixes

This commit is contained in:
Richard Patel 2023-04-10 12:44:11 +02:00
parent d2ff22b853
commit 6ad68d9a28
4 changed files with 9 additions and 4 deletions

View File

@ -21,9 +21,9 @@ Radiance requires further requires Go 1.19. Using Go 1.18 or Go 1.20 will not wo
Here's a trick to download another Go version in case you have the wrong one.
(See [Managing Go versions](https://golang.org/doc/manage-install))
go get golang.org/dl/go1.19.8
go1.19.8 download
alias go=go1.19.8
go install golang.org/dl/go1.19.8@latest
"$(go env GOPATH)/bin/go1.19.8" download
alias go="$(go env GOPATH)/bin/go1.19.8"
Once your Go toolchain and build dependencies are installed, you can build Radiance as usual:

View File

@ -1,3 +1,5 @@
//go:build linux
package main
import (

View File

@ -1,3 +1,5 @@
//go:build linux
package nftables
import (

View File

@ -62,7 +62,8 @@ func TestState(t *testing.T) {
},
},
}
for name, tc := range cases {
for name, tc_ := range cases {
tc := tc_
t.Run(name, func(t *testing.T) {
t.Parallel()
state := State(mustHashFromHex(tc.pre))