Eider
Eider

Reputation: 29

go mod tidy complains a package is not found in a github repository

mkdir ~/testproject2 # A completely new directory
cd ~/testproject2
go mod init testproject2
go get -v github.com/qor5/admin/[email protected]
cat < main.go
package main

import (
    "github.com/qor5/admin/v3"
    "github.com/qor5/admin/v3/presets" // Import a subpackage as well
)

func main() {
    _ = admin.New
    _ = presets.New()
}
EOF
go mod tidy

go: testproject2 imports github.com/qor5/admin/v3: module github.com/qor5/admin/v3@latest found (v3.2.0), but does not contain package github.com/qor5/admin/v3

any advice?

Upvotes: -2

Views: 18

Answers (0)

Related Questions