Coder Social home page Coder Social logo

Go Get Failed about ytdl HOT 6 CLOSED

AngangGuo avatar AngangGuo commented on August 24, 2024
Go Get Failed

from ytdl.

Comments (6)

ikozlovone avatar ikozlovone commented on August 24, 2024 1

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

from ytdl.

wedojava avatar wedojava commented on August 24, 2024

#86 solved it.

from ytdl.

shoce avatar shoce commented on August 24, 2024
; 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

from ytdl.

AngangGuo avatar AngangGuo commented on August 24, 2024

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)

from ytdl.

sifaaa avatar sifaaa commented on August 24, 2024

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

from ytdl.

corny avatar corny commented on August 24, 2024

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

from ytdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.