Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Go Get Failed #87

Closed
AngangGuo opened this issue Feb 23, 2020 · 6 comments
Closed

Go Get Failed #87

AngangGuo opened this issue Feb 23, 2020 · 6 comments

Comments

@AngangGuo
Copy link

I want to use ytdl as a library in my program.
It's failed to get it using go get -u github.com/rylio/ytdl
Please advise.

go get -u github.com/rylio/ytdl
go: finding golang.org/x/xerrors latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/tools latest
go: finding golang.org/x/sync latest
go: finding github.com/coreos/go-systemd latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: github.com/coreos/go-systemd@v0.0.0-20200109085637-d657f9650837: go.mod has post-v0 module path "github.com/coreos/go-systemd/v22" at revision d657f9650837
go: finding gopkg.in/check.v1 latest
go get: error loading module requirements
@wedojava
Copy link
Contributor

#86 solved it.

@ikozlovone
Copy link

ikozlovone commented Apr 4, 2020

Please advise.

github.com/rylio/ytdl (download)
github.com/rs/zerolog (download)
github.com/stretchr/testify (download)
github.com/davecgh/go-spew (download)
github.com/pmezard/go-difflib (download)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at //gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/mattn/go-isatty (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
github.com/olekukonko/tablewriter (download)
github.com/mattn/go-runewidth (download)
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
golang.org/x/sys/unix
github.com/mattn/go-isatty
github.com/rylio/ytdl/cmd/ytdl
# github.com/rylio/ytdl/cmd/ytdl
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:51:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:56:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:60:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:64:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:68:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:72:22: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal:
	cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:76:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:80:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:84:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:88:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
/Users/ikozlov/go/src/github.com/rylio/ytdl/cmd/ytdl/main.go:88:17: too many errors

@shoce
Copy link

shoce commented Apr 6, 2020

; go get -u github.com/rylio/ytdl/...
# github.com/rylio/ytdl/cmd/ytdl
src/github.com/rylio/ytdl/cmd/ytdl/main.go:51:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:56:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:60:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:64:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:68:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:72:22: cannot use cli.StringSliceFlag literal (type cli.StringSliceFlag) as type cli.Flag in slice literal:
	cli.StringSliceFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:76:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:80:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:84:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
	cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:88:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
	cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
src/github.com/rylio/ytdl/cmd/ytdl/main.go:88:17: too many errors

@AngangGuo
Copy link
Author

Use git clone then go build failed:

C:\andrew\prj>git clone https://github.com/rylio/ytdl.git
Cloning into 'ytdl'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 612 (delta 22), reused 24 (delta 8), pack-reused 566R
Receiving objects: 100% (612/612), 158.19 KiB | 1.00 MiB/s, done.
Resolving deltas: 100% (317/317), done.

C:\andrew\prj>cd ytdl

C:\andrew\prj\ytdl>go build .\cmd\ytdl
# github.com/rylio/ytdl/cmd/ytdl
cmd\ytdl\main.go:171:34: not enough arguments in call to client.GetVideoInfo
        have (string)
        want (context.Context, interface {})
cmd\ytdl\main.go:248:43: not enough arguments in call to client.GetDownloadURL
        have (*ytdl.VideoInfo, *ytdl.Format)
        want (context.Context, *ytdl.VideoInfo, *ytdl.Format)

@sifaaa
Copy link

sifaaa commented May 10, 2020

Use git clone then go build failed:

C:\andrew\prj>git clone https://github.com/rylio/ytdl.git
Cloning into 'ytdl'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 612 (delta 22), reused 24 (delta 8), pack-reused 566R
Receiving objects: 100% (612/612), 158.19 KiB | 1.00 MiB/s, done.
Resolving deltas: 100% (317/317), done.

C:\andrew\prj>cd ytdl

C:\andrew\prj\ytdl>go build .\cmd\ytdl
# github.com/rylio/ytdl/cmd/ytdl
cmd\ytdl\main.go:171:34: not enough arguments in call to client.GetVideoInfo
        have (string)
        want (context.Context, interface {})
cmd\ytdl\main.go:248:43: not enough arguments in call to client.GetDownloadURL
        have (*ytdl.VideoInfo, *ytdl.Format)
        want (context.Context, *ytdl.VideoInfo, *ytdl.Format)

I have the same

@corny
Copy link
Collaborator

corny commented Jun 9, 2020

Please try the compiled releases: https://github.com/rylio/ytdl/releases

@corny corny closed this as completed Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants