Skip to content

Move remaining path functions from Defaults module in cardano-testnet to Cardano.Node.Testnet.Paths in cardano-node#6586

Open
palas wants to merge 5 commits into
masterfrom
move-more-defaults-to-node
Open

Move remaining path functions from Defaults module in cardano-testnet to Cardano.Node.Testnet.Paths in cardano-node#6586
palas wants to merge 5 commits into
masterfrom
move-more-defaults-to-node

Conversation

@palas
Copy link
Copy Markdown
Contributor

@palas palas commented Jun 1, 2026

Description

Closes #6532.

Move all path and filename definition functions from Testnet.Defaults (in cardano-testnet) to
Cardano.Node.Testnet.Paths (in cardano-node), so that consumers of generated testnet
configurations can reference canonical paths without depending on cardano-testnet.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Running tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

@palas palas requested a review from a team as a code owner June 1, 2026 23:39
@palas palas linked an issue Jun 1, 2026 that may be closed by this pull request
@palas palas self-assigned this Jun 1, 2026
@palas palas changed the title Move remaining path functions from Defaults to Cardano.Node.Testnet.Paths Move remaining path functions from Defaults module in cardano-testnet to Cardano.Node.Testnet.Paths in cardano-node Jun 1, 2026
@palas palas force-pushed the move-more-defaults-to-node branch from 4397ada to ceb1f79 Compare June 2, 2026 00:25
@palas palas force-pushed the move-more-defaults-to-node branch from ceb1f79 to 3ed9ac6 Compare June 2, 2026 00:54
@@ -4,66 +4,255 @@
-- testnet configurations depend on this module so that directory
-- layout changes are kept in sync at compile time.
module Cardano.Node.Testnet.Paths
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion: use singular nouns for modules

Suggested change
module Cardano.Node.Testnet.Paths
module Cardano.Node.Testnet.Path


import Test.Cardano.Ledger.Core.Rational
import Cardano.Node.Testnet.Paths (defaultNodeName, defaultNodeDataDir, defaultUtxoSKeyPath,
import Cardano.Node.Testnet.Paths (defaultCommitteeKeysDir, defaultCommitteeName,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess explicit imports don't make sense for this one? The functions are quite distinguishable imo.

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.

Consider moving some defaults from Testnet.Defaults to cardano-node

2 participants