mirror of https://github.com/knative/func.git
Fix plugin version retrieval (#564)
This commit is contained in:
parent
eccc0ad368
commit
bb8dc74971
|
@ -38,7 +38,7 @@ func (f *funcPlugin) Execute(args []string) error {
|
|||
rootCmd, _ := cmd.NewRootCmd()
|
||||
info, _ := debug.ReadBuildInfo()
|
||||
for _, dep := range info.Deps {
|
||||
if strings.Contains(dep.Path, "boson-project/func") {
|
||||
if strings.Contains(dep.Path, "knative.dev/kn-plugin-func") {
|
||||
cmd.SetMeta("", dep.Version, dep.Sum)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue