fix(dagger): rename debug parameter to avoid conflict with built-in flag#3138
Merged
javirln merged 1 commit intoMay 20, 2026
Merged
Conversation
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
Contributor
AI Session Analysis
|
| 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
migmartri
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename the
debugparameter todebugModeinAddRawEvidenceandAddFileEvidencein the Dagger module. Both--debugand--verboseare reserved Dagger global flags, sodebugMode(exposed as--debug-modeon the CLI) is used instead. The underlying--debugargument passed to the Chainloop CLI remains unchanged.Fixes runtime
flag already exists: debugerrors when invoking these functions via Dagger.