This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Description
#!/bin/bash
docker run -i golang:1.13beta1-buster <<-SCRIPT
# Using Go modules, and with the default proxy.
export GO111MODULE=on
go env GOPROXY
echo "First try the default, @latest:"
go get github.com/fuzzitdev/fuzzit
fuzzit --version
echo
echo "Fails, because it gets the latest v1, which doesn't even work"
echo
echo "Then try to force it to get a v2 tag:"
go get github.com/fuzzitdev/fuzzit@v2.4.29
fuzzit --version
echo
echo "Fails, because the v2 tags don't use a v2 module path"
echo
echo "Finally, force @master:"
go get github.com/fuzzitdev/fuzzit@master
fuzzit --version
echo
echo "Works, but it's downloading master, not the latest or a pinned tag, which isn't useful"
echo
SCRIPT
The simplest fix is to:
- amend
go.mod to say module github.com/fuzzitdev/fuzzit/v2
- update docs to say
GO111MODULE=on go get github.com/fuzzitdev/fuzzit/v2, and require Go 1.12 or later
- release a new v2 tagged version, so that
@latest picks up that tag and not the broken v2.4.29