a10networks / terraform-provider-thunder

terraform-provider-thunder
BSD 2-Clause "Simplified" License
15 stars 9 forks source link

Won't compile under Go v1.15.5 #36

Closed jdallen-a10 closed 3 years ago

jdallen-a10 commented 3 years ago

Cloned the repo, started the build, but get errors:

$ make build
==> Checking that code complies with gofmt requirements...
./thunder/resource_thunder_router_bgp_network_ip_cidr_test.go:19:22: expected '(', found '{'
gofmt needs running on the following files:
./thunder/resource_thunder_router_bgp_address_family_ipv6_neighbor_peer_group_neighbor_test.go
./thunder/resource_thunder_router_bgp_neighbor_peer_group_neighbor_test.go
./thunder/resource_thunder_router_bgp_address_family_ipv6_neighbor_ipv6_neighbor_test.go
./thunder/resource_thunder_router_bgp_neighbor_ipv6_neighbor_test.go
./thunder/resource_thunder_router_bgp_address_family_ipv6_network_ipv6_network_test.go
./thunder/resource_thunder_router_bgp_address_family_ipv6_neighbor_ipv4_neighbor_test.go
./thunder/resource_thunder_router_bgp_neighbor_ipv4_neighbor_test.go
You can use the command: `make fmt` to reformat code.
make: *** [fmtcheck] Error 1
$ make fmt
gofmt -w $(find . -name '*.go' |grep -v vendor)
./thunder/resource_thunder_router_bgp_network_ip_cidr_test.go:19:22: expected '(', found '{'
make: *** [fmt] Error 2

My version of GO:

$ go version
go version go1.15.5 darwin/amd64
arpitgupta-a10 commented 3 years ago

Hi Jhon, Please take latest pull. you can also try these two command for local build

  1. gofmt -s -w . ==> for formatting
  2. go build -o terraform-provider-thunder ==> to bake binary