← Back to issue list

Add linter to verify that the charm's metadata is v2

View original Github issue

Metadata

Project
charmcraft
Number
#492
Type
issue
State
closed
Author
facundobatista
Labels
—
Created
Updated
Closed

Current evaluation

Closed as obsolete because Charmcraft now generates charm metadata automatically, making the proposed v2 metadata linter unnecessary.

Resolution: closed stale

Reason: Maintainer @lengau closed the issue on 2024-09-20 as obsolete because Charmcraft now generates charm metadata automatically. No resolving PR or commit was cited.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This is a new linter, it will error out unless: - the charm has a valid metadata YAML config - it has NO `series` key

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as obsolete because Charmcraft now generates charm metadata automatically, making the proposed v2 metadata linter unnecessary.
stealth/space-bunny-alpha — closed superseded Obsoleted: Charmcraft now generates charm metadata automatically, so the proposed v2 metadata linter was closed as unnecessary on 20 September 2024.
qwen3.6-35b-a3b-mtp-q6 — — Closed as obsoleted because charm metadata is now automatically generated, rendering the proposed linter unnecessary.
qwen/qwen3.6-35b-a3b — — Closed as obsoleted. The requested linter for v2 charm metadata is no longer needed because the tooling now automatically generates metadata.
qwen/qwen3.6-35b-a3b — — Closed as obsoleted. The team now automatically generates charm metadata, eliminating the need for a manual linter to validate v2 format or check for the series key.
qwen/qwen3.6-35b-a3b — — A proposed linter to verify v2 charm metadata without a series key was closed as obsoleted. Maintainer @lengau noted the feature is unnecessary since charm metadata is now automatically generated.
qwen/qwen3.6-35b-a3b — — The proposed linter for validating charm metadata v2 was closed as obsoleted. Automated charm metadata generation now handles validation, making the manual linter and series key restrictions unnecessary.
qwen3.6-35b-a3b-mtp-q6 — — Closed as obsoleted. The proposed linter is no longer needed since charm metadata is now automatically generated.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#732 Metadata v1 charms should be classified as invalid charmcraft closed Closed as obsolete: Charmcraft now writes metadata for most charms, making the proposed metadata-v1 rejection unnecessary.
78%
#449 Added a linter to verify that the metadata is ok (CRAFT-322). charmcraft merged Merged PR #449 (commit ccc10f3e), adding a linter to validate charm metadata; packing-time enforcement was intentionally deferred.
78%
#607 Add linter to check charm's categories charmcraft closed Category validation was abandoned after metadata tags and categories were deprecated; Charmcraft would not inspect Juju YAML without official schemas.
74%
#258 Upgrade to v2 the `metadata.yaml` generated by `init` charmcraft closed Charmcraft init already generated v2-compliant metadata, so maintainer facundobatista closed #258 as already done without further changes.
72%