mirror of https://github.com/knative/client.git
* chore: Update dependency to knative-serving 0.5.1 * chore: Changed deps to released versions where possible Rebuilt mod deps and vendor dir based on this dependency list github.com/knative/serving v0.5. github.com/knative/pkg v0.0.0-20190330001454-aad7a9ad4639 github.com/mitchellh/go-homedir v1.1.0 github.com/spf13/cobra v0.0.3 github.com/spf13/pflag v1.0.3 github.com/spf13/viper v1.3.1 k8s.io/api kubernetes-1.14.1 k8s.io/apimachinery kubernetes-1.14.1 k8s.io/cli-runtime kubernetes-1.14.1 k8s.io/client-go v11.0.0 sigs.k8s.io/yaml v1.1.0 Not sure if all dependencies are required (e.g. is k8s.io/api required to be specified explicitely or shouldn't we rely on k8s.io/client-go to bring it this as a transitive dependency which maches always the cli-runtime's version. * chore: Update .gitignore to *not* ignore certain vendor files * chore: Aligned with k8s version from serving 0.5.2 * chore: Run `go mod tidy` * chore(modules): Update dependencies |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| homedir.go | ||
README.md
go-homedir
This is a Go library for detecting the user's home directory without the use of cgo, so the library can be used in cross-compilation environments.
Usage is incredibly simple, just call homedir.Dir() to get the home directory
for a user, and homedir.Expand() to expand the ~ in a path to the home
directory.
Why not just use os/user? The built-in os/user package requires
cgo on Darwin systems. This means that any Go code that uses that package
cannot cross compile. But 99% of the time the use for os/user is just to
retrieve the home directory, which we can do for the current user without
cgo. This library does that, enabling cross-compilation.