-
Notifications
You must be signed in to change notification settings - Fork 46
Fix SC2166: Replace deprecated -a operator in shell conditions
#12118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
-a operator in shell conditions
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
Use Claude CLI --debug-file flag for native log capture
|
Smoke Test Results - Copilot Engine
Status: ✅ PASS Run: §21416250561 cc: @pelikhan
|
Smoke Test ResultsPRs Reviewed:
Tests:
Overall Status: PASS
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
Static analysis identified SC2166 warnings in 138 workflow files using the deprecated
-aoperator in shell test expressions. The operator was generated by the workflow compiler, not present in source markdown files.Changes
Core Fix
pkg/workflow/unified_prompt_step.goline 335 to generate POSIX-compliant shell conditions-ato separate test expressions joined with&&Generated Output
.lock.ymlfiles now use POSIX-compliant test expressionsExample
Before:
After:
This eliminates all SC2166 warnings and improves shell portability without functional changes.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Changeset
-aoperator.