Unset home and keyring dir from depinject client config #35

Merged
nabarun merged 1 commits from pm-handle-config into main 2024-07-16 03:50:09 +00:00
Member

Part of #33
Follows PR #34

  • With earlier workaround in root cmd (not passing DefaultNodeHome to depinject), it created a config/client.toml wherever the laconicd CLI was being run
  • Unset clientCtx.HomeDir and clientCtx.KeyringDir while providing client context to depinject instead to prevent this and still handle the --home flag precedence issue
    • When using default home directory, all commands still work as DefaultNodeHome is passed to the command executor
Part of #33 Follows PR #34 - With earlier workaround in root cmd (not passing `DefaultNodeHome` to depinject), it created a `config/client.toml` wherever the laconicd CLI was being run - Unset `clientCtx.HomeDir` and `clientCtx.KeyringDir` while providing client context to depinject instead to prevent this and still handle the `--home` flag precedence issue - When using default home directory, all commands still work as `DefaultNodeHome` is passed to the [command executor](https://git.vdb.to/cerc-io/laconic2d/src/branch/main/cmd/laconicd/main.go#L18)
prathamesh added 1 commit 2024-07-15 11:36:35 +00:00
Unset home and keyring dir from depinject client config
All checks were successful
Build / build (pull_request) Successful in 1m50s
Lint / Run golangci-lint (pull_request) Successful in 4m22s
E2E Tests / test-e2e (pull_request) Successful in 2m46s
Integration Tests / test-integration (pull_request) Successful in 1m45s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m47s
SDK Tests / sdk_tests (pull_request) Successful in 7m46s
Unit Tests / test-unit (pull_request) Successful in 1m50s
fd395902d9
prathamesh changed title from [WIP] Unset home and keyring dir from depinject client config to Unset home and keyring dir from depinject client config 2024-07-15 12:27:34 +00:00
nabarun merged commit 4c0cb6c2c4 into main 2024-07-16 03:50:09 +00:00
nabarun deleted branch pm-handle-config 2024-07-16 03:50:10 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd#35
No description provided.