* feat!: change 'version' to 'specVersion'
Changes `func create` to write the last migration value to func.yaml
when a new function is created, and modifies the name in the func.yaml
file to be 'specVersion' instead of 'version' to help reduce confusion.
Adds a migration, and a LastMigration() utility function.
Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/861
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove DefaultVersion
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: review feedback
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: review feedback
Signed-off-by: Lance Ball <lball@redhat.com>
- switch reflect.DeepEqual to cmp.Diff for better readability
- some cmp.Diff arguments were reversed(!)
- coverted one test into a table test
- cleaned up some misleading error messages
- preferred testing.Error to testing.Fatal to enable collecting more errors at once