Skip to content

Fix cardano-testnet#153

Merged
tweag-ev-ak merged 1 commit intomainfrom
fix-testnet
Mar 3, 2026
Merged

Fix cardano-testnet#153
tweag-ev-ak merged 1 commit intomainfrom
fix-testnet

Conversation

@tweag-ev-ak
Copy link
Collaborator

No description provided.

quoted = show

optString :: String -> String -> CmdOption
optString a b = CoOpt a b
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use opt?
Does quoting affect anything?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be cool if you test it as well, because it might be linux thing but maybe I'm wrong.

At least for me, I've tried manually to run cardano-testnet and it just ignores paths in quotes.

Copy link
Contributor

@axman6 axman6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question

Comment on lines +258 to +265
runCmd
"cardano-testnet create-env"
[ opt "num-pool-nodes" env_CARDANO_TESTNET_NUM_NODES
, flg "enable-new-epoch-state-logging"
, optString "output" env_TESTNET_WORK_DIR
, opt "testnet-magic" env_CARDANO_TESTNET_MAGIC
]
& Console.putChunks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any problem runing this moire than once? I guess we always want to start fresh

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I can see it just ignores and doing nothing if it already exists. But we might want to clean up before running it (not sure if it's necessary, since we don't change it anyway).

@tweag-ev-ak tweag-ev-ak merged commit dea8047 into main Mar 3, 2026
2 checks passed
@tweag-ev-ak tweag-ev-ak deleted the fix-testnet branch March 3, 2026 11:34
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