Skip to content

plugin.json version field does not match release version #16

@intel352

Description

@intel352

Summary

The plugin.json included in the v0.3.0 release tarball has "version": "1.0.0" instead of "version": "0.3.0":

{
    "name": "workflow-plugin-authz",
    "version": "1.0.0",
    ...
}

This was also the case in v0.2.0 — the manifest has always said 1.0.0 regardless of the actual release tag.

Impact

  • Consumers cannot programmatically verify they have the correct plugin version
  • wfctl plugin list (if/when implemented) would report the wrong version
  • Contradicts the Go module version (v0.3.0) and the GitHub release tag

Suggested Fix

Update plugin.json to reflect the actual version, either:

  1. Manual: Update "version" in plugin.json before each release
  2. Automated: Use goreleaser's templating to inject the tag version into plugin.json during the release build:
# .goreleaser.yml
before:
  hooks:
    - cmd: sed -i 's/"version": ".*"/"version": "{{ .Version }}"/' plugin.json

Option 2 ensures the manifest always matches the release tag without manual steps.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions