Skip to content

Commit 2f0afff

Browse files
Add comment to jsonToDhall function (#625)
1 parent 7e1f67d commit 2f0afff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/App/API.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,8 @@ removeIgnoredTarballFiles path = do
962962
jsonToDhallManifest :: String -> Aff (Either String String)
963963
jsonToDhallManifest jsonStr = do
964964
let cmd = "json-to-dhall"
965+
-- Dhall requires that the path begin with './', but joining paths together with Node
966+
-- will remove the './' prefix. We need to manually append this to the relative path.
965967
let args = [ "--records-loose", "--unions-strict", "." <> Path.sep <> Path.concat [ "types", "v1", "Manifest.dhall" ] ]
966968
process <- Execa.execa cmd args identity
967969
process.stdin.writeUtf8End jsonStr

0 commit comments

Comments
 (0)