Skip to content

multi-dimentional layers #899

@craigmulligan

Description

@craigmulligan

We are using layers to enforce a typical application hierarchy e.g.: ['feature', 'service', 'repo'], which is working well.

But we second similar dimension we'd like to enforce. Let's call it stable and experimental. Where experimental modules can depend on stable modules but not the other way around - this could be enforce by layers.

WDYT about supporting multiple layers?

# tach.toml
[layers.app]
layers = [
  "feature",
  { name = "service", closed = true },
  "repo"
]

[layers.stability]
layers = [
  "stable",
  "experimental"
]
# tach.domain.toml
[layer]
type = "app"
layer = "service"

[layer]
type = "stability"
layer = "experimental"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions