Skip to content
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

Error: mkdir ./charon: not a directory #427

Closed
OisinKyne opened this issue Apr 14, 2022 · 0 comments
Closed

Error: mkdir ./charon: not a directory #427

OisinKyne opened this issue Apr 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@OisinKyne
Copy link
Contributor

OisinKyne commented Apr 14, 2022

Problem to be solved

I'm not sure how you guys run commands on charon, but what I do is:

go build .
./charon help

So when I choose:

./charon gen-p2pkey

I get:

./charon gen-p2pkey 
Error: mkdir: mkdir ./charon: not a directory
Usage:
  charon gen-p2pkey [flags]

Proposed solution

Change ./charon as the default folder to ./.charon/.

@OisinKyne OisinKyne added the bug Something isn't working label Apr 14, 2022
obol-bulldozer bot pushed a commit that referenced this issue May 2, 2022
When running commands like `./charon gen-p2pkey` or `./charon create-cluster`, users including me got an error:
`Error: mkdir ./charon: not a directory`

This could happen as the default directory name starts with the prefix `./charon`, for example, `./charon/data` for `create-cluster`. Removing the prefix solves this. Directories are always created off of `charon` root.

category: bug
ticket: #427
@xenowits xenowits closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants