Skip to content

std: fix shell extern collisions and unreachable args in ExecShell - #3464

Merged
BaseMax merged 1 commit into
mainfrom
fix/ci-std-shell-meta-errors
Nov 15, 2026
Merged

BaseMax merged 1 commit into
mainfrom
fix/ci-std-shell-meta-errors

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove direct extern func system declarations from std/os/shell/open.salam and std/os/shell/shell.salam and use process.Start/Wait instead to avoid C/runtime symbol collisions during compilation.
  • Restructure ExecShell to use if/else so Windows and POSIX argument vectors are not redeclared after a return path (fixes redefinition of 'args' and unreachable-code errors seen in release CI).

Context

Addresses std compilation errors reported in release CI (e.g. https://github.com/SalamLang/Salam/actions/runs/43646674579/job/132605978008):

  • 'system' is already defined with these parameter types in std/os/shell/open.salam
  • redefinition of 'args' / unreachable code in std/os/shell/shell.salam

Notes

std/fs/meta.salam Exists redefinition was also reported in that run; this change does not modify it (no duplicate definition found locally) and may need separate follow-up if still reproduced.

@BaseMax
BaseMax requested a review from a team as a code owner November 15, 2026 08:41
@vercel

vercel Bot commented Nov 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
salam Building Building Preview Nov 15, 2026 8:41am UTC

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit 6eca0ce into main Nov 15, 2026
5 of 17 checks passed
@BaseMax
BaseMax deleted the fix/ci-std-shell-meta-errors branch November 15, 2026 08:42
@BaseMax BaseMax mentioned this pull request Nov 15, 2026

This branch had an error being deployed

1 failed deployment
Preview — 1ede16ec Deployed Nov 15, 2026 by vercel[bot]
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.

1 participant