ebsarr / packet

packet, a CLI tool to manage packet.net services
Other
40 stars 14 forks source link

Unable to install with go get #28

Closed vinitkhandagle closed 6 years ago

vinitkhandagle commented 6 years ago

I am trying to install the tool but getting the below error

% go get -u github.com/ebsarr/packet                                                                                                                     
# github.com/ebsarr/packet/cmd
goapps/src/github.com/ebsarr/packet/cmd/api.go:74:16: unknown field 'PaymentMethod' in struct literal of type packngo.ProjectCreateRequest
vielmetti commented 6 years ago

I was able to confirm the error, which shows up at

https://github.com/ebsarr/packet/blob/master/cmd/api.go#L74

ebsarr commented 6 years ago

Thanks for the report. Issue fixed in latest release: v2.1.2. Please confirm @vielmetti @vinitkhandagle .

vielmetti commented 6 years ago

Test machine is a Mac running Go 1.9.3 installed from homebrew; I was able to do go get -u github.com/ebsarr/packet and compile without any problems.

Also test on Ubuntu 16.04 on a Packet "Type 0" server, compiles and runs without any evident issues.

Looks good to me!

vinitkhandagle commented 6 years ago

Issue is fixed thanks