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

cannot find package #5

Open
wqk317 opened this issue Sep 8, 2020 · 2 comments
Open

cannot find package #5

wqk317 opened this issue Sep 8, 2020 · 2 comments

Comments

@wqk317
Copy link

wqk317 commented Sep 8, 2020

go run main.go -u=https://xxx.m3u8  -o=~/Downloads/xxx.mp4  

main.go:8:2: cannot find package "github.com/oopsguy/m3u8/dl" in any of:
	/usr/local/Cellar/go/1.15.1/libexec/src/github.com/oopsguy/m3u8/dl (from $GOROOT)
	/Users/alpha/go/src/github.com/oopsguy/m3u8/dl (from $GOPATH)

git clone的代码, 在项目根目录运行, 报这个错

@wqk317
Copy link
Author

wqk317 commented Sep 8, 2020

额, 知道了, 代码里所有"github.com/oopsguy/m3u8/"开头的我这边不知道为啥都报错...换成本地的"./"开头就好了...

@yann0917
Copy link

额, 知道了, 代码里所有"github.com/oopsguy/m3u8/"开头的我这边不知道为啥都报错...换成本地的"./"开头就好了...

因为这个项目不是用 go mod 管理的,必须放到 go/src 下面才能运行。

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

2 participants