Skip to content

Instantly share code, notes, and snippets.

@johnrichardrinehart
Created September 24, 2019 05:13
Show Gist options
  • Save johnrichardrinehart/2d9944249e4d1e0f17c608149d50ff39 to your computer and use it in GitHub Desktop.
Save johnrichardrinehart/2d9944249e4d1e0f17c608149d50ff39 to your computer and use it in GitHub Desktop.
An example output of a bash session describing an "issue" with Go modules
johnrinehart@modie test $ tree -L 3
.
├── folder
│ └── pkg
│ └── pkg.go
└── go.mod
2 directories, 2 files
johnrinehart@modie test $ go test ./...
folder/pkg/pkg.go:4:2: git ls-remote -q https://github.com/a/folder in /Users/johnrinehart/go/pkg/mod/cache/vcs/0924eb5d08e2c012fe
3519c5d5cdb67347a7d2f7906fb84bf80f256e9cc225fd: exit status 128:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
johnrinehart@modie test $ go mod tidy
github.com/a/folder/pkg imports
github.com/a/folder: git ls-remote -q https://github.com/a/folder in /Users/johnrinehart/go/pkg/mod/cache/vcs/0924eb5d08e2c
012fe3519c5d5cdb67347a7d2f7906fb84bf80f256e9cc225fd: exit status 128:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
johnrinehart@modie test $ cat go.mod
module github.com/a
go 1.13
johnrinehart@modie test $ cat folder/pkg/pkg.go
package pkg
import (
"github.com/a/folder"
)
func Func() {
folder.Println()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment