-
Notifications
You must be signed in to change notification settings - Fork 721
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
Remove all hardcoded yaml files from cardano-testnet #5242
Conversation
fe2e545
to
305bbc5
Compare
@@ -14,10 +14,12 @@ module Testnet.Babbage | |||
, babbageTestnet | |||
) where | |||
|
|||
import Cardano.Api |
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.
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.
import Data.Word | ||
import GHC.Stack | ||
import Options.Applicative | ||
import System.Directory (doesFileExist, removeFile) | ||
|
||
import Cardano.Chain.Genesis (GenesisHash (unGenesisHash), readGenesisData) | ||
|
||
import qualified Cardano.Crypto.Hash.Blake2b as Crypto |
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.
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.
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.
Made changes but opened a PR to suggest an update to the style doc.
This is good, but I think we should write the default yaml file to a golden file as well so the configuration file can easily be reviewed or read by non-coders. |
4cfad69
to
16d4130
Compare
Done 👍 |
Description
Hardcoding configuration files makes
cardano-testnet
less portable and also introduces ambiguity into what your node configuration actually is.Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.