Fix plugin version retrieval (#564)

This commit is contained in:
David Simansky 2021-10-07 15:42:28 +02:00 committed by GitHub
parent eccc0ad368
commit bb8dc74971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}