Skip to content

pass debug flag to plugin #904

@priteshbandi

Description

@priteshbandi

Is your feature request related to a problem?

Currently, Notation prints debug information using the --debug flag, but there's no mechanism to pass this flag to plugins. Additionally, since Notation doesn't transmit any environment variables to plugins, plugin producers have limited options to output debug information.

What solution do you propose?

Set the environment variable ENABLE_NOTATION_PLUGIN_Debug=1 when invoking the plugin, or call the plugin with the --debug flag.

What alternatives have you considered?

Passing the debug flag as plugin configuration poses a challenge as the plugin needs to parse the input to determine if debugging is enabled or not. In come cases plugin producer might be trying to debug parsing issues.

Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions