Skip to content

Commit

Permalink
Supress rye install log output when in debug mode
Browse files Browse the repository at this point in the history
rye uses [whatthestell](https://github.com/zekroTJA/whattheshell)
[here](https://github.com/mitsuhiko/rye/blob/d950ca25b032d59846b78aba3dfb1284e3d04505/rye/src/cli/rye.rs#L392)
to determine what shell is being used. This internally uses `ps`
[here](https://github.com/zekroTJA/whattheshell/blob/b6290f96b5638314ac4547def37fe35985831d5d/src/infer/unix.rs#L52).
My guess is that this prints`error: process ID out of range`
to stderr when searching for the process which opened the shell
in the current process "tree"
because no shell is used when the `rye self install`
command is executed by this typescript action.
  • Loading branch information
eifinger committed Feb 18, 2024
1 parent 43d2c88 commit d31db40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/setup-rye.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ async function installRye(
core.debug(`Created temporary directory ${tempDir}`)
const options: exec.ExecOptions = {
cwd: tempDir,
silent: !core.isDebug(),
env: {
...process.env,
RYE_HOME: tempDir
Expand Down

0 comments on commit d31db40

Please sign in to comment.