You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
exec prints the install of a missing version to stdout, next to the output of the command #823
vfox exec installs a version that is not installed yet, as the "Auto Install" tip in docs/usage/core-commands.md says. The messages of that install go to standard output, which is also where the output of the command goes. A pipeline that reads the output of the command therefore gets the install messages first.
and then the output of etcd --version. The download progress is on standard error. After the install, the same command's standard output starts with etcd Version: 3.5.12.
Expected: the messages of the installation go to standard error, so that the standard output of vfox exec ... -- <command> is the output of the command.
Where it comes from: cmd/commands/exec.go:169 prints SDK %s@%s not found, installing... with fmt.Printf. internal/sdk/sdk.go:388 and internal/sdk/sdk.go:434 print the install messages with pterm.Printf, which writes to standard output. The plugin's own print calls, such as the download URL above, also write to standard output.
The docs recommend vfox exec for Docker and CI (docs/usage/core-commands.md), where the output of the command is often captured.
Activity
fix(plugin,install,exec): preserve Lua IO contracts, keep install --a…
fix(exec): narrow PR to exec stdout isolation and NoClipboard for aut…
fix(exec): isolate exec stdout from setup and suppress auto-install c…