Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Cannot vendor k8s httplog #73

Open
FrenchBen opened this issue Jan 12, 2017 · 3 comments
Open

Cannot vendor k8s httplog #73

FrenchBen opened this issue Jan 12, 2017 · 3 comments

Comments

@FrenchBen
Copy link

Sample code:

package main

import (
	"io/ioutil"
	"os"

	_ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration
	"k8s.io/kubernetes/pkg/kubectl/cmd"
	cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
	_ "k8s.io/kubernetes/pkg/version/prometheus" // for version metric registration

	"github.com/spf13/cobra/doc"
)

func main() {
	kubectl := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, ioutil.Discard, ioutil.Discard)
	doc.GenMarkdownTree(kubectl, "./")
}

End of trash -u output:

INFO[0318] Checking out 'k8s.io/apiserver/pkg/httplog', commit: 'master'
INFO[0318] Fetching latest commits from 'origin' for 'k8s.io/apiserver/pkg/httplog'
ERRO[0318] `git fetch -f -t origin` failed:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

FATA[0318] fetch failed                                  i={Package:k8s.io/apiserver/pkg/httplog Version:master Repo:}
@AlekSi
Copy link
Contributor

AlekSi commented Feb 13, 2017

Try to remove trash cache: rm -fr ~/.trash-cache.

@FrenchBen
Copy link
Author

That worked - Can you explain why the cache was at fault here?
Perhaps there should be a purge cmd for the cache?

@allingeek
Copy link

I'm getting the same error message for other packages, and removing the cache doesn't help. This happens on a fresh machine without ever having had trash run before but from a repo that has been in development for some time.

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

No branches or pull requests

3 participants