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
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 marked the pull request as ready for review 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.