vc60er / deptree

show golang dependence like tree
76 stars 9 forks source link

Update README.md #16

Closed vc60er closed 11 months ago

vc60er commented 11 months ago

fix: no matching versions for query "latest"

gen2thomas commented 11 months ago

For me it is working and looks like this:

go install github.com/vc60er/deptree@latest
go: downloading github.com/vc60er/deptree v0.0.0-20230516030844-a8afffff4b06

What is your response from the call?

vc60er commented 11 months ago

The response like this. install github.com/vc60er/deptree@latest go: github.com/vc60er/deptree@latest: no matching versions for query "latest"

But I found the issue: I have set a variable in my bash, it cuase go install response no matching versions for query "latest" export GOPROXY="https://pkgs.d.example.net/artifactory/api/go/go-virtual,https://goproxy.cn,direct"

gen2thomas commented 11 months ago

Than we should close this PR without merging, because using @latest is more common.

BTW: do you consider renaming the branch from master to e.g. main? See this post : https://github.com/github/renaming

vc60er commented 11 months ago

@gen2thomas Thank you for your reminder, I think we should change default branch to main. I have done this.

If you have a local clone, you can update it by running the following commands, thank you.

git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a