oasisprotocol / oasisprotocol/oasis-core

oasis-node registry entity init CLI command doesn't respect --datadir flag

Open
#3,164 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c:bug c:cli c:registry
Dominant language
Go
Stars
369
Forks
151
Avg merge
1d 3h
Merged PRs (30d)
6

Description

SUMMARY

Running oasis-node registry entity init --datadir entity/ CLI command creates a new empty entity/ directory but puts the generated files (entity_genesis.json, entity.json, entity.pem) to the current directory.

ISSUE TYPE
  • Bug Report
OASIS NODE VERSION
Software version: 20.8-git35b95b8dc
Runtime protocol version: 0.15.0
Consensus protocol version: 0.25.0
Committee protocol version: 0.10.0
Tendermint core version: 0.33.6
ABCI library version: 0.16.2
Go toolchain version: 1.14.3
STEPS TO REPRODUCE
[tadej@toronto ~]$ mkdir Temp && cd Temp
[tadej@toronto Temp]$ oasis-node-dev registry entity init --datadir entity/
ACTUAL RESULTS
[tadej@toronto Temp]$ ls -R
.:
entity  entity_genesis.json  entity.json  entity.pem

./entity:
EXPECTED RESULTS
[tadej@toronto Temp]$ ls -R
.:
entity

./entity:
entity_genesis.json  entity.json  entity.pem

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.

Research direction

Start with the oasis-node registry entity init --datadir entity/ command and reproduce the reported directory layout. Done means the generated entity_genesis.json, entity.json, and entity.pem files are created inside the specified entity/ directory rather than the current directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.