labstack / echo

High performance, minimalist Go web framework
https://echo.labstack.com
MIT License
29.94k stars 2.23k forks source link

Go get no longer works #2651

Closed AmahleZuma closed 4 months ago

AmahleZuma commented 4 months ago

Tried to use go get command for echo v4, but the docs say its deprecated

Checklist

Expected behaviour

I wanted it to install right away.

Actual behaviour

'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation

Steps to reproduce

go get github.com/labstack/echo/v4 && go get github.com/labstack/echo/v4/middleware

System

Kubuntu 24.04 LTS x86_64

Note: I believe this might be an informative issue for people who use the go get command while using go version go1.22.2 linux/amd64

aldas commented 4 months ago

You only need to do go get github.com/labstack/echo/v4 as it adds the middleware package also.