Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Coder CLI is not in the $PATH on Windows workspaces #4870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #5051
ghuntley opened this issue Nov 3, 2022 · 5 comments
Closed
Tracked by #5051

Coder CLI is not in the $PATH on Windows workspaces #4870

ghuntley opened this issue Nov 3, 2022 · 5 comments

Comments

@ghuntley
Copy link
Contributor

ghuntley commented Nov 3, 2022

After provisioning a windows workspace using our templates the coder binary is not installed.

CleanShot 2022-11-03 at 14 32 47@2x

Whereas when provisioning a linux and macos workspace using our templates the coder binary is installed.

CleanShot 2022-11-03 at 14 33 55@2x

CleanShot 2022-11-03 at 14 40 19@2x

question: seeking confirmation that the coder CLI should be installed by default and on the path (ie via fetching /bin)

CleanShot 2022-11-03 at 14 35 19@2x

ps. Here is my template -> https://gist.github.com/ghuntley/1ca092e4433175a596b387a7b5e4b613

@deansheather
Copy link
Member

The coder CLI is installed since it functions as the workspace agent, but it looks like it's not added to the PATH correctly. Adding directories to PATH in Windows sucks big time, so I expect this to not work in terminals made by the RDP session, but it should at least work over SSH or in the web terminal since we control the environment for those.

@f0ssel
Copy link
Contributor

f0ssel commented Nov 4, 2022

Could we not put the coder binary somewhere that is most commonly included in the Windows PATH?

@ghuntley ghuntley mentioned this issue Nov 14, 2022
10 tasks
@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 14, 2023
@coadler coadler removed the stale This issue is like stale bread. label Jan 14, 2023
@tristanbrown
Copy link

tristanbrown commented Jan 24, 2023

I'm also having this issue with the PATH.

For anyone else who encounters this, the default path you can add to PATH manually is C:\Program Files\Coder\bin, using instructions for your specific Windows distribution.

@kylecarbs kylecarbs changed the title Coder CLI is not installed on Windows Coder CLI is not in the $PATH on Windows workspaces Apr 3, 2023
@kylecarbs
Copy link
Member

I believe this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants