Skip to content

fix(dagger): rename debug parameter to avoid conflict with built-in flag#3138

Merged
javirln merged 1 commit into
chainloop-dev:mainfrom
javirln:fix/dagger-debug-flag-conflict
May 20, 2026
Merged

fix(dagger): rename debug parameter to avoid conflict with built-in flag#3138
javirln merged 1 commit into
chainloop-dev:mainfrom
javirln:fix/dagger-debug-flag-conflict

Conversation

@javirln
Copy link
Copy Markdown
Member

@javirln javirln commented May 20, 2026

Rename the debug parameter to debugMode in AddRawEvidence and AddFileEvidence in the Dagger module. Both --debug and --verbose are reserved Dagger global flags, so debugMode (exposed as --debug-mode on the CLI) is used instead. The underlying --debug argument passed to the Chainloop CLI remains unchanged.

Fixes runtime flag already exists: debug errors when invoking these functions via Dagger.

The `debug` parameter in AddRawEvidence and AddFileEvidence conflicts
with Dagger's built-in --debug global flag, causing "flag already exists"
errors at runtime. Rename to `debugMode` (exposed as --debug-mode) to
avoid the collision. Both --debug and --verbose are reserved by Dagger,
so debugMode is used instead.

Assisted-by: Claude Code
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>

Chainloop-Trace-Sessions: a8191e8b-5f3a-461b-a872-b312af60a7fb
@chainloop-platform
Copy link
Copy Markdown
Contributor

AI Session Analysis

Avg score Sessions Failing policies Attribution Files Lines Total Duration
- 1 ✅ 0 100% AI / 0% Human 1 +6 / -6 4m31s

100% AI — ✅ All policies passing

May 20, 2026 15:48 UTC · 4m31s · $2.30 · 63 in / 10.1k out · claude-code 2.1.139 (claude-opus-4-6)


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai extras/dagger/main.go +6 / -6

Policies (4)

Status Policy Material Messages
✅ Passed ai-config-ai-agents-allowed ai-coding-session-a8191e -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-a8191e -
✅ Passed ai-config-no-secrets ai-coding-session-a8191e -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-a8191e -

Powered by Chainloop and Chainloop Trace

@javirln javirln self-assigned this May 20, 2026
@javirln javirln requested review from jiparis and migmartri May 20, 2026 15:53
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@javirln javirln merged commit aeecf06 into chainloop-dev:main May 20, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants