Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(shared): validate cloudflared with the version subcommand
#9880
Send to my agent
Merged
maria-rcks
merged 1 commit into
main
from
refs/pull/9880/head
·
merged by
maria-rcks
3 months ago
View on GitHub
Conversation
2
Commits
1
Files changed
2
Impact
Showing
2 changed files
with
5 additions
and
2 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
4 additions and 1 deletion
+4
-1
packages/shared/src/relayClient.test.ts
Modified
Diff
Before/After
Viewed
packages/shared/src/relayClient.test.ts
View file
Expand up
Show all 60 lines
@@ -61,7 +61,10 @@
61
61
ChildProcessSpawner
.
make
((command) =>
62
62
Effect
.
sync
(() => {
63
63
commands.
push
(
ChildProcess
.
isStandardCommand
(command) ? command.
command
:
"piped-command"
);
64
-
return
makeHandle
();
64
+
// The pinned Windows executable rejects --version but accepts the version subcommand.
65
+
return
makeHandle
(
66
+
ChildProcess
.
isStandardCommand
(command) && command.
args
.
includes
(
"--version"
) ?
1
:
0
,
67
+
);
65
68
}),
66
69
),
67
70
);
Expand down
Show all lines
1 addition and 1 deletion
+1
-1
packages/shared/src/relayClient.ts
Modified
Diff
Before/After
Viewed
packages/shared/src/relayClient.ts
View file
Expand up
Show all 420 lines
@@ -421,7 +421,7 @@
421
421
.
pipe
(
wrapInstallFailure
(
"write_failed"
,
"Could not make the relay client executable."
));
422
422
}
423
423
yield
*
report
(
"validating"
);
424
-
yield
*
runCommand
(executablePath, [
"--version"
]).
pipe
(
424
+
yield
*
runCommand
(executablePath, [
"version"
]).
pipe
(
425
425
wrapInstallFailure
(
"validation_failed"
,
"The downloaded relay client binary did not run."
),
426
426
);
427
427
Expand down
Show all lines
Home
Search
Explore
Menu