1lann / dynamicserver

A system to dynamically launch DigitalOcean droplets as Minecraft servers if people are trying to connect, and destroys them when there's nobody on the server to save running costs.
MIT License
10 stars 3 forks source link

command "go get" fails with "not enough arguments in call to doClient.DropletActions.PowerOff" #2

Open sonicer105 opened 5 years ago

sonicer105 commented 5 years ago

Hi!

I tired to pull down your project and ran into this issue:

sailex@equestria-side:/opt$ go get github.com/1lann/dynamicserver/reverse_proxy
# github.com/1lann/dynamicserver/reverse_proxy
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:28:48: not enough arguments in call to doClient.DropletActions.PowerOff
        have (int)
        want (context.Context, int)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:56:37: not enough arguments in call to doClient.Droplets.Delete
        have (int)
        want (context.Context, int)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:88:48: not enough arguments in call to doClient.DropletActions.Snapshot
        have (int, string)
        want (context.Context, int, string)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:110:48: not enough arguments in call to doClient.Images.ListUser
        have (*godo.ListOptions)
        want (context.Context, *godo.ListOptions)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:151:37: not enough arguments in call to doClient.Images.Delete
        have (int)
        want (context.Context, int)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:190:48: not enough arguments in call to doClient.Images.ListUser
        have (*godo.ListOptions)
        want (context.Context, *godo.ListOptions)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/actions.go:256:39: not enough arguments in call to doClient.Droplets.Create
        have (*godo.DropletCreateRequest)
        want (context.Context, *godo.DropletCreateRequest)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/droplet_monitor.go:138:44: not enough arguments in call to doClient.Droplets.List
        have (*godo.ListOptions)
        want (context.Context, *godo.ListOptions)
/home/sailex/go/src/github.com/1lann/dynamicserver/reverse_proxy/droplet_monitor.go:171:46: not enough arguments in call to doClient.Droplets.Actions
        have (int, *godo.ListOptions)
        want (context.Context, int, *godo.ListOptions)
sailex@equestria-side:/opt$

go version

go version go1.12.6 linux/amd64

go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/sailex/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/sailex/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build194858912=/tmp/go-build -gno-record-gcc-switches"

Am I missing something? I'm not that familiar with the GO language.

1lann commented 5 years ago

Hey, it's not your problem. I'll look into fixing it sometime today or tomorrow, no guarantees this will still work though as I haven't really used this in years!