-
Notifications
You must be signed in to change notification settings - Fork 631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you revert the changes to lib/configuration.yaml
then i think this is good to go.
lib/configuration.yaml
Outdated
file: mainnet-genesis.json | ||
hash: 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb | ||
- mainnet-genesis.json | ||
- 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that is wrong, or rather that there should not be any change to that file. Commit b258f92 changed the way the config was parsed and has since been reverted.
You can probably drop these changes to this file and still have the test pass (as long as you have rebased).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, let me try!
@erikd, @parsonsmatt, @avieth any chance for taking a look at this tiny PR. |
Like `withConfigurations` but takes explicit `LoggerName` argument. This is useful when one wants to run a computation in `IO` where `WithLogger` instance is not available.
Description
This solves the recent problem with
lib/configuration.yaml
not being parsable anymore. This happend because core team rightly removed some partial accessor functions. I just updated the yaml file and I alsoI added a test. This is a short term solution, long term I think we should writeFromJSON
instances for the types we are reading, because just removing fields from config file will make it less and less readable. @erikd it's up to you to decide if this maintainingFromJSON
instances is worth the effort vs readability of the config file. I guess this really depends how many more partial functions we will remove.Linked issue
https://iohk.myjetbrains.com/youtrack/issue/CDEC-405
Type of change
Developer checklist
Testing checklist
QA Steps
Screenshots (if available)