Replaced default path when using --workspace

Open
#780 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by reproducing the two exercism configure commands from the issue and trace the CLI's workspace-path handling. Confirm the existing default workspace is not replaced and that the requested --workspace path is handled correctly; add or update coverage for this sequence if the repository has relevant tests.

Written by the indexing model from the issue text.

Description

I haven't used exercism in a while and just updated to 3.0.11. In the process. I used the --workspace flag, but it ignored the path I gave and replaced the default (existing) path.

Steps taken:

  1. exercism configure --token=<TOKEN>
    Result:
The default Exercism workspace is ~/Exercism
There is already something there.
        ...
You can choose the workspace location by rerunning this command
with the --workspace flag.
  1. exercism configure --token=<TOKEN> --workspace=~/Exercism/Reboot/
    Result:
You have configured the Exercism command-line client:

Config dir:                       ~/.config/exercism
Token:         (-t, --token)      <TOKEN>
Workspace:     (-w, --workspace)  ~/Exercism/Reboot
API Base URL:  (-a, --api)        https://api.exercism.io/v1

However, ~/Exercism/Reboot does not exist. The existing directory ~/Exercism is now an empty directory ~/exercism.

Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/cli

All issues in exercism/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.