Skip to content

Commit

Permalink
Build create-daml-app with -Werror (digital-asset#12513)
Browse files Browse the repository at this point in the history
and fix the warning

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Jan 20, 2022
1 parent 688f1e1 commit 9c03e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ tests =
-- First test the base application (without the user-added feature).
withCurrentDirectory cdaDir $ do
step "Build DAML model for base application"
callCommandSilent "daml build"
callCommandSilent "daml build --ghc-option=-Werror"
step "Run JavaScript codegen"
callCommandSilent $ "daml codegen js -o ui/daml.js .daml/dist/" <> projectName <> "-0.1.0.dar"
-- We patch all package.json files to point to local files for our TypeScript libraries.
Expand Down Expand Up @@ -114,7 +114,7 @@ tests =
forM_ ["MessageEdit", "MessageList"] $ \messageComponent ->
assertFileExists ("ui" </> "src" </> "components" </> messageComponent <.> "tsx")
step "Build the new DAML model"
callCommandSilent "daml build"
callCommandSilent "daml build --ghc-option=-Werror"
step "Run JavaScript codegen for new DAML model"
callCommandSilent $ "daml codegen js -o ui/daml.js .daml/dist/" <> projectName <> "-0.1.0.dar"
genFiles <- listFilesRecursive "ui/daml.js"
Expand Down
1 change: 0 additions & 1 deletion templates/create-daml-app/daml/Setup.daml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Setup where

import DA.Action (unless)
import DA.Foldable (forA_)
import qualified DA.Text as T
import Daml.Script
Expand Down

0 comments on commit 9c03e79

Please sign in to comment.