Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get error #20

Open
colin-e-nhsd opened this issue Nov 17, 2020 · 2 comments
Open

go get error #20

colin-e-nhsd opened this issue Nov 17, 2020 · 2 comments

Comments

@colin-e-nhsd
Copy link

colin-e-nhsd commented Nov 17, 2020

OS: Windows 10 Pro 64 bit
go version: go1.15.4 windows/amd64

Apologies if this is a GitHub issue vs. something specific to this repository. I'm still learning how the go module system interacts with git.

I have a simple go Echo app running that uses the default Echo templating engine. The app imports a number of modules successfully, e.g.-

import (
	"log"
	"net/http"
	"os"
	"os/signal"
	"syscall"

	"github.com/labstack/echo/v4"
	"github.com/labstack/echo/v4/middleware"

	"gitlab.com/colin_e_nhsd/eprom.git/backend"
)

this works fine.

However when I tried to add goview-v4 I was unable to access the repo. If I run-

go get github.com/foolin/goview-v4 as a first step in either a Powershell window (I'm on Windows) or the VSCode terminal I get two popup GitHub password prompts one after the other, then the download aborts after a lengthy timeout.

UPDATE
I think this error is a combination of a documentation issue on page- https://github.com/foolin/goview/tree/master/supports/echoview-v4 plus the fact that Github gives confusing errors about authentication failures when what it means is "repo or page not found".

On the supports/echoview-v4 doc page the first few lines say-

Install

go get -u github.com/foolin/goview-v4
go get -u github.com/foolin/goview/supports/echoview-v4

Example

package main

import (
	"github.com/foolin/goview/supports/echoview"
	"github.com/labstack/echo"
	"github.com/labstack/echo/middleware"
	"net/http"
)

the line go get -u github.com/foolin/goview-v4 fails because there is no such module or package. The following line go get -u github.com/foolin/goview/supports/echoview-v4 succeeds, but I assume that means thre will be unresolved dependencies.

Meanwhile, the imports don't seem to be consistent either with the module dependencies above (no -v4 suffix) nor the correct imports for Echo v4 itself, which is imported as-

	"github.com/labstack/echo/v4"
	"github.com/labstack/echo/v4/middleware"

Any chance of updating the documentation here? I'm not entirely clear if this package is module-aware, which is significant now Echo v4 is set up as modules.

@dougwinsby
Copy link

There is no goview v4 release. Use this command (as shown in the README):

go get github.com/foolin/goview

@tanvir-retailai
Copy link

@foolin I think the documentation for echo v4 is not up-to-date. Any chance to update it soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants