cloudwego / cloudwego/eino-ext

Local的StreamingShell不支持windows执行command

Open
#896 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
811
Forks
368
Avg merge
16h 22m
Merged PRs (30d)
13

Description

描述:Local的StreamingShell不支持windows执行command

步骤:
1、windows下使用Local的StreamingShell执行command提示failed to start command: exec: \"/bin/sh\": executable file not found in %PATH%
2、查看代码中是写死的/bin/sh
`func (s *Local) initStreamingCmd(ctx context.Context, command string)`
`cmd := exec.CommandContext(ctx, "/bin/sh", "-c", command)`

期望:windows下可以使用
版本:latest

Contributor guide

Open the contributing guide

Research direction

Start at Local.initStreamingCmd(ctx, command), where the issue identifies the hard-coded /bin/sh invocation. Reproduce the failure on Windows and inspect the surrounding Local StreamingShell implementation for platform-specific command execution expectations. Done means a Windows Local StreamingShell can execute a command successfully without the /bin/sh executable error, while existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.