Skip to content
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

Normalize actions signature (take 2) #12

Open
blaggacao opened this issue May 3, 2023 · 0 comments
Open

Normalize actions signature (take 2) #12

blaggacao opened this issue May 3, 2023 · 0 comments

Comments

@blaggacao
Copy link
Collaborator

blaggacao commented May 3, 2023

From:

{
  currentSystem,
  fragment, # <system>.<cell>.<block>.<target>
  fragmentRelPath, # <cell>/<block>/<target>
  target,
}: []

To:

{
  root, # <cellsFrom>
  target, # any
  cursor, # ["<system>" "<cell>" "<block>" "<target>"]
  currentSystem,
}: []

Rationale:

  • root + cursor[1:] allows to reason and/or interact with the mutable repository layout
  • currentSystem abstracts that the action (not the target) must act on the host system This is not the same as cross-compilation!
  • cursor allows to construct a unique path inside the PRJ_* folders
  • cursor also allows to reason about the flake fragment
@blaggacao blaggacao changed the title Normalize actions signature Normalize actions signature (take 2) May 3, 2023
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

No branches or pull requests

1 participant