dogbin / inu

Easily use dogbin from your terminal
MIT License
26 stars 1 forks source link

Installation Error #4

Open Syzygianinfern0 opened 4 years ago

Syzygianinfern0 commented 4 years ago

I have installed Go from the official Arch Linux repos and have also tested the install from the official docs

~ >>> go get github.com/dogbin/inu                                                                                                           
# github.com/dogbin/inu
go/src/github.com/dogbin/inu/main.go:46:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
go/src/github.com/dogbin/inu/main.go:69:3: unknown field 'EnvVar' in struct literal of type cli.StringFlag
go/src/github.com/dogbin/inu/main.go:78:14: cannot use []cli.Author literal (type []cli.Author) as type []*cli.Author in assignment
go/src/github.com/dogbin/inu/main.go:88:3: cannot use serverFlag (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:89:3: cannot use slugFlag (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:90:3: cannot use fileFlag (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:91:3: cannot use jsonFlag (type cli.BoolFlag) as type cli.Flag in slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:92:3: cannot use clipboardFlag (type cli.BoolFlag) as type cli.Flag in slice literal:
    cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:93:3: cannot use apiKeyFlag (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:102:5: cannot use serverFlag (type cli.StringFlag) as type cli.Flag in slice literal:
    cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/dogbin/inu/main.go:102:5: too many errors
Dhruvgera commented 4 years ago

Same error up here

xstefen commented 4 years ago

Ubuntu 20.04.1 LTS Go 1.13.8 go get github.com/dogbin/inu returns same error

FrosT2k5 commented 3 years ago

Got any fix so far?

Syzygianinfern0 commented 3 years ago

Got any fix so far?

Nope

xstefen commented 3 years ago

Seems like a cli versioning issue, try with

GO111MODULE=on go get -u github.com/dogbin/inu

Worked for me, credits to https://github.com/DarthSim/hivemind/issues/16

FrosT2k5 commented 3 years ago

Seems like a cli versioning issue, try with

GO111MODULE=on go get -u github.com/dogbin/inu

Worked for me, credits to DarthSim/hivemind#16

It did install this after doing this but when I do inu help it gives command not found

xstefen commented 3 years ago

You have to add ~/go/bin or wherever your go packages install to your path, in my particular case its ~/go/bin so for instance I added this to my ~/.bashrc [[ $PATH != ?(*:)$HOME/go/bin?(:*) ]] && export PATH=$HOME/go/bin:$PATH save it, open a new terminal and ur good to go

FrosT2k5 commented 3 years ago

You have to add ~/go/bin or wherever your go packages install to your path, in my particular case its ~/go/bin so for instance I added this to my ~/.bashrc [[ $PATH != ?(*:)$HOME/go/bin?(:*) ]] && export PATH=$HOME/go/bin:$PATH save it, open a new terminal and ur good to go

Alright it did work, added to bashrc. Thanks for help : )