Skip to content

error running camp validate #37

Description

@HoffmannP

entry.yaml:

component: component_name
labels: ["fully-free"]
security-contact: empty
source: https://git.uni-jena.de/rz/mmz/moodle/plugins/component_name
maintainers:
- github: B-Ranger
tier: 1
status: active
discovered: '2026-08-05'
releases: []
summary: component_name test plugin
license: GPL-3.0
$: camp validate entry.yaml
camp validate entry.yaml
Traceback (most recent call last):
  File "/home/ber/Projekte/CAMP/.venv/bin/camp", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ber/Projekte/CAMP/.venv/lib/python3.12/site-packages/camp/cli.py", line 646, in main
    return args.func(args)
           ^^^^^^^^^^^^^^^
  File "/home/ber/Projekte/CAMP/.venv/lib/python3.12/site-packages/camp/cli.py", line 34, in _cmd_validate
    problems = validate_entry(path)
               ^^^^^^^^^^^^^^^^^^^^
  File "/home/ber/Projekte/CAMP/.venv/lib/python3.12/site-packages/camp/validate.py", line 53, invalidate_entry
    f"file is at {actual.name} under '{actual.parts[-2]}/' but component "
                                       ~~~~~~~~~~~~^^^^
IndexError: tuple index out of range
``

Metadata

Metadata

Assignees

No one assigned

    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