Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/windows-gh-label-stderr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ai-hero/sandcastle": patch
---

Fix `sandcastle init` crashing on Windows when creating the `Sandcastle` GitHub label. The `gh label create` invocation used a Unix-only `2>/dev/null` stderr redirection, which is not valid in PowerShell/cmd. The redirection was redundant — `execSync` already runs with `stdio: "ignore"`, which discards stderr cross-platform — so it has simply been removed with no behavior change on macOS/Linux.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ const initCommand = Command.make(
yield* Effect.try({
try: () =>
execSync(
'gh label create "Sandcastle" --description "Issues for Sandcastle to work on" --color "F9A825" 2>/dev/null',
'gh label create "Sandcastle" --description "Issues for Sandcastle to work on" --color "F9A825"',
{ cwd, stdio: "ignore" },
),
catch: () => undefined,
Expand Down
Loading