Skip to content

Make ./build.cs run: fix its shebang - #150

Merged
Mpdreamz merged 1 commit into
mainfrom
fix-build-shebang
Nov 13, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
fix-build-shebang

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

./build.cs runs the C# pipeline again; before, it failed with "Couldn't find a project to run".

Prompt summary: While checking runna's docs, running its examples as ./build.cs showed that the shebang they inherited from argh's build.cs doesn't work. Fix it here too.

Why

#!/usr/bin/env -S dotnet run -- makes the kernel run dotnet run -- ./build.cs …: the -- hands the file name to the app, so dotnet run looks for a project in the folder and fails. The file is executable (100755), so ./build.cs is how it's meant to be run.

What

The shebang

#!/usr/bin/env -S dotnet --, as the .NET file-based apps docs show: dotnet runs the file, and the -- passes every argument, --help included, to the script.

Verify

./build.cs --help

🤖 Generated with Claude Code

@Mpdreamz Mpdreamz added the fix A defect fixed (patch) label Nov 13, 2026
@Mpdreamz
Mpdreamz merged commit ea4173a into main Nov 13, 2026
12 checks passed
@Mpdreamz
Mpdreamz deleted the fix-build-shebang branch November 13, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A defect fixed (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant