mirror of https://github.com/coder/coder.git
6c1208e3db
This commit changes the `coder agent` path in `ps` listing from `/tmp/tmp.coderwWs87Y/coder agent` to `./coder agent`. The path is also updated to `/tmp/coder.wWs87Y`. There were two options considered for turning `./coder agent` into `coder agent`: 1. Run `exec -a coder /path/to/coder agent` 2. Run `PATH=/path/to:$PATH exec coder agent` Option 1 is not supported by `dash`, and thus discarded. Option 2 duplicates functionality in `coder agent` which _appends_ the path, here we would want to _prepend_ it to ensure we're starting the downloaded `coder` binary in case there is a binary with a conflicting name on the system. Fixes #2407 |
||
---|---|---|
.. | ||
proto | ||
agent.go | ||
agent_test.go | ||
archive.go | ||
archive_test.go | ||
serve.go | ||
serve_test.go | ||
transport.go |