Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #4

Open
Syzygianinfern0 opened this issue Jun 17, 2020 · 8 comments
Open

Installation Error #4

Syzygianinfern0 opened this issue Jun 17, 2020 · 8 comments

Comments

@Syzygianinfern0
Copy link

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
Copy link

Same error up here

@xstefen
Copy link

xstefen commented Oct 12, 2020

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

@FrosT2k5
Copy link

Got any fix so far?

@Syzygianinfern0
Copy link
Author

Got any fix so far?

Nope

@xstefen
Copy link

xstefen commented Nov 11, 2020

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

@FrosT2k5
Copy link

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
Copy link

xstefen commented Nov 21, 2020

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
Copy link

FrosT2k5 commented Nov 22, 2020

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 : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants