Cannot install Battlesnake CLI for Go 1.11 (cannot find package hashicorp/hcl/hcl/printer) #52
jeffchase
started this conversation in
Bug Reports
Replies: 1 comment 1 reply
-
Ah, you'll want to update your Go install to one that supports Go Modules (1.11 does not by default). Using Go 1.11: ~ docker run -it --rm golang:1.11
root@76e45262ccf8:/go# go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
/usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH) Using Go 1.16 (latest): ~ docker run -it --rm golang:1.16
root@af51dbc9327f:/go# go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
go: downloading github.com/BattlesnakeOfficial/rules v1.0.17
go: downloading github.com/google/uuid v1.1.2
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/spf13/cobra v1.1.1
go: downloading github.com/spf13/viper v1.7.1
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0
go: downloading golang.org/x/text v0.3.2
root@af51dbc9327f:/go# battlesnake --help
Tools and utilities for Battlesnake games.
Usage:
battlesnake [command]
Available Commands:
help Help about any command
play Play a game of Battlesnake locally.
Flags:
--config string config file (default is $HOME/.battlesnake.yaml)
-h, --help help for battlesnake
Use "battlesnake [command] --help" for more information about a command. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See hashicorp/hcl#449
Does this project need an update? (I know nothing about Go)
Beta Was this translation helpful? Give feedback.
All reactions