coder/provisionersdk
Mathias Fredriksson 6c1208e3db
feat: Clean up coder agent path in `ps` listing (#2453)
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
2022-06-17 19:37:47 +03:00
..
proto feat: Add workspace application support (#1773) 2022-06-04 15:13:37 -05:00
agent.go feat: Clean up coder agent path in `ps` listing (#2453) 2022-06-17 19:37:47 +03:00
agent_test.go fix: More robust provisionersdk agent init scripts (#1551) 2022-05-19 13:02:42 +00:00
archive.go fix: Resolve symlinks being written with size 0 in tar (#1488) 2022-05-16 20:26:23 +00:00
archive_test.go feat: Improve resource preview and first-time experience (#946) 2022-04-11 18:54:30 -05:00
serve.go fix: Race when writing to a closed pipe (#1916) 2022-06-01 07:59:03 -05:00
serve_test.go chore: avoid concurrent usage of t.FailNow (#1683) 2022-05-24 08:58:39 +01:00
transport.go fix: Race when writing to a closed pipe (#1916) 2022-06-01 07:59:03 -05:00