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

Fix import for extras in go.mod file #207

Open
dwallacelf opened this issue May 2, 2024 · 3 comments
Open

Fix import for extras in go.mod file #207

dwallacelf opened this issue May 2, 2024 · 3 comments
Assignees

Comments

@dwallacelf
Copy link
Collaborator

dwallacelf commented May 2, 2024

When I attempt to add the two references to a go.mod file

go.fd.io/govpp.git v0.8.0
go.fd.io/govpp.git/extras v0.1.0

and then I run go mod tidy, I get this error a lot:

git.fd.io/govpp.git: go.fd.io/[email protected]: no secure protocol found for repository
git.fd.io/govpp.git/binapi/memif: go.fd.io/[email protected]: no secure protocol found for repository

What should I be adding to go.mod so that I can use libmemif and govpp.
I also tried to use github.com/FDio/govpp but go mod hates that even more.


Originally posted by @Sophrinix in #122 (comment)

@ondrej-fabry ondrej-fabry self-assigned this May 15, 2024
@ondrej-fabry
Copy link
Member

ondrej-fabry commented May 16, 2024

Here is a link to a closed issue where this has been addresses previously: #111

@ondrej-fabry
Copy link
Member

ondrej-fabry commented May 22, 2024

@Sophrinix Need more information to be able to help you, as I'm not really sure what is happening here, but the error no secure protocol found for repository seems unrelated to extras actually.

ℹ️ Can you provide the following information?

  • what version of go tooling are you running (run go version)
  • what version of go is defined in your go.mod file of your project?

@ondrej-fabry
Copy link
Member

There actually is issue with importing GoVPP's extras go module, but the problem does not show any erorr like you are seeing.

It short, you have to use GOPROXY=direct, because the data in the proxy is invalid.

➤ go list -json -m -versions go.fd.io/govpp/[email protected]
{
	"Path": "go.fd.io/govpp/extras",
	"Version": "v0.1.0",
	"Versions": [
		"v0.6.0-alpha",
		"v0.6.0",
		"v0.7.0",
		"v0.8.0-alpha",
		"v0.10.0"
	],
	"Time": "2019-07-03T15:00:28Z",
	"Dir": "/home/ondrej/go/pkg/mod/go.fd.io/govpp/[email protected]",
	"GoMod": "/home/ondrej/go/pkg/mod/cache/download/go.fd.io/govpp/extras/@v/v0.1.0.mod",
	"GoVersion": "1.18",
	"Origin": {
		"VCS": "git",
		"URL": "https://github.com/FDio/govpp",
		"Ref": "refs/tags/v0.1.0",
		"Hash": "b1006dced4cc0c23d9dc754e97d89500aeb55170"
	}
}
➤ GOPROXY=direct go list -json -m -versions go.fd.io/govpp/[email protected]
{
	"Path": "go.fd.io/govpp/extras",
	"Version": "v0.1.0",
	"Versions": [
		"v0.1.0"
	],
	"Time": "2019-07-03T15:00:28Z",
	"Dir": "/home/ondrej/go/pkg/mod/go.fd.io/govpp/[email protected]",
	"GoMod": "/home/ondrej/go/pkg/mod/cache/download/go.fd.io/govpp/extras/@v/v0.1.0.mod",
	"GoVersion": "1.18",
	"Origin": {
		"VCS": "git",
		"URL": "https://github.com/FDio/govpp",
		"TagPrefix": "extras/",
		"TagSum": "t1:x7xgAj5aeOC+DZu5HLiZUY3DgMQA9RRScS5l/36Vcls=",
		"Ref": "refs/tags/v0.1.0",
		"Hash": "b1006dced4cc0c23d9dc754e97d89500aeb55170"
	}
}

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

2 participants