提交 9adf5438 编写于 作者: T Thomas Stromberg

lint cleanup

上级 832fb6b4
......@@ -45,7 +45,6 @@ func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) er
return g.Wait()
}
// CopyBinary copies a locally cached binary to the guest VM
func CopyBinary(cr command.Runner, src string, dest string) error {
f, err := assets.NewFileAsset(src, path.Dir(dest), path.Base(dest), "0755")
......
......@@ -25,8 +25,6 @@ import (
// VersionPrefix is the prefix of the git tag for a version
const VersionPrefix = "v"
// The current version of the minikube
// version is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.version=vX.Y.Z"
var version = "v0.0.0-unset"
......@@ -36,8 +34,6 @@ var gitCommitID = ""
// isoVersion is a private field and should be set when compiling with --ldflags="-X k8s.io/minikube/pkg/version.isoVersion=vX.Y.Z"
var isoVersion = "v0.0.0-unset"
var isoPath = "minikube/iso"
// GetVersion returns the current minikube version
func GetVersion() string {
return version
......@@ -53,7 +49,6 @@ func GetISOVersion() string {
return isoVersion
}
// GetSemverVersion returns the current minikube semantic version (semver)
func GetSemverVersion() (semver.Version, error) {
return semver.Make(strings.TrimPrefix(GetVersion(), VersionPrefix))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册