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

Set default data directory correctly #1249

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Set default data directory correctly #1249

merged 1 commit into from
Sep 26, 2023

Conversation

joshklop
Copy link
Contributor

@joshklop joshklop commented Sep 19, 2023

Towards #1198

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (5a6b72e) 74.10% compared to head (040e83c) 74.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1249      +/-   ##
==========================================
+ Coverage   74.10%   74.15%   +0.04%     
==========================================
  Files          73       72       -1     
  Lines        7897     7873      -24     
==========================================
- Hits         5852     5838      -14     
+ Misses       1578     1572       -6     
+ Partials      467      463       -4     
Files Coverage Δ
node/node.go 43.58% <ø> (-1.48%) ⬇️
cmd/juno/juno.go 69.23% <78.57%> (+1.69%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshklop joshklop requested review from a team, IronGauntlets and omerfirmak and removed request for a team September 19, 2023 01:08
@joshklop joshklop force-pushed the joshklop/datadir branch 3 times, most recently from 4cb4204 to 3a29c64 Compare September 26, 2023 09:13
We now use cwd/juno as the data directory.

Previously, we set the default to the empty string "" and manually set
the default directory in `node.New`. This meant the incorrect default
was printed in two cases:

1. `--help`
2. When printing the config on boot.

Finally, this centralizes all of our config management to the
`cmd/juno` package; if `juno.NewCmd.Execute` returns without an error,
the config is structurally valid.
@joshklop joshklop merged commit c9e9b01 into main Sep 26, 2023
@joshklop joshklop deleted the joshklop/datadir branch September 26, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants