rbt icon indicating copy to clipboard operation
rbt copied to clipboard

implement FileMapping

Open BrianHicks opened this issue 3 years ago • 0 comments

As in ADR 008 (docs/adrs/008-unified-inputs.md) we need some data structure like this to avoid conflicts between jobs and source files:

FileMapping := { sourceFile : Str, workspacePath : Str }

sourceFile : Str -> FileMapping
sourceFile = \path -> @FileMapping { sourceFile : path, workspacePath : path }

withWorkspacePath : FileMapping, Str -> FileMapping
withWorkspacePath = \@FileMapping { sourceFile }, workspacePath ->
    @FileMapping { sourceFile, workspacePath }

Right now we're just using a Str for input paths—they should be replaced by this data structure.

BrianHicks avatar Sep 23 '22 14:09 BrianHicks