I added the dependency to go.mod:
require (
github.com/labstack/echo/v4 v4.3.1
)
replace (
github.com/labstack/echo/v4 => example.com/echo/v4.git v4.3.1
)
And getting error like replace example.com/echo.git: version "v4.3.1" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v4. Tag with the required version exists in the repo.
While I'm tried to play with the version I got something like v1.2.1-0.20210520145606-2defe74d39f0, but when I set my replace section like:
replace (
github.com/labstack/echo/v4 => example.com/echo/v4.git v1.2.1-0.20210520145606-2defe74d39f0
)
I'm getting the error errno=Connection refused related to the private git server.
Could you please advise what I'm doing wrong and how I can replace dependency with my private fork?
.git.gitI also get an error:version "v4.3.1" invalid: unknown revision echo/v4.3.1v4.git? Thev4part of the import path is only a tag in the original repo, it does not correspond to an actual path or repo name.replacesection to thisgithub.com/labstack/echo => bucket.digitalarsenal.net/elpaso/backend/libs/echo v4.3.1it doesn't help also.replace example.com/echo: version "v4.3.1" invalid: unknown revision libs/echo/v4.3.1. But tag with this version exists.go get.