How do you get an update for the tip of a package?

104 views
Skip to first unread message

Peter Kleiweg

unread,
Mar 3, 2021, 10:06:36 AM3/3/21
to golang-nuts
I try to install a Go program from github at tip.

This works:


But when there is a new push to the repository, and I do this:


... I still have the previous version.

The same with go install.

The same when I run this first:

    go clean -cache -modcache

Shulhan

unread,
Mar 19, 2021, 2:04:31 PM3/19/21
to Peter Kleiweg, golang-nuts
On Wed, 3 Mar 2021 07:06:36 -0800 (PST)
Peter Kleiweg <pkle...@xs4all.nl> wrote:

> I try to install a Go program from github at tip.
>
> This works:
>
> go get github.com/some/program@HEAD
>
> But when there is a new push to the repository, and I do this:
>
> go get -u github.com/some/program@HEAD
>
> ... I still have the previous version.
>
> The same with go install.
>

Most likely, you may have hit the cache on Go proxy server. Either wait
for several minutes (1 hour?) or turn off the GOPROXY environment
variable.

See https://golang.org/ref/mod#module-proxy for more information.
Reply all
Reply to author
Forward
0 new messages