Skip to content

Commit

Permalink
Don't do single-package checks if typecheck-upgrades: true
Browse files Browse the repository at this point in the history
  • Loading branch information
dylant-da committed May 28, 2024
1 parent 572f119 commit 4d02b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ checkUpgrade version shouldTypecheckUpgrades warnBadInterfaceInstances presentPk
singlePkgDiagnostics =
let world = initWorldSelf [] presentPkg
in
runGamma world version $ do
local addBadIfaceSwapIndicator $ do
checkNewInterfacesAreUnused presentPkg
checkNewInterfacesHaveNoTemplates presentPkg
runGamma world version $
local addBadIfaceSwapIndicator $
when shouldTypecheckUpgrades $ do
checkNewInterfacesAreUnused presentPkg
checkNewInterfacesHaveNoTemplates presentPkg

extractDiagnostics :: Either Error ((), [Warning]) -> [Diagnostic]
extractDiagnostics result =
Expand Down
1 change: 1 addition & 0 deletions sdk/daml-script/test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ dependencies:
build-options:
- --target={target}
- --enable-interfaces=yes
typecheck-upgrades: false
EOF
$(location //compiler/damlc) build --project-root=$$TMP_DIR --ghc-option=-Werror -o $$PWD/$(location script{scriptVersion}-test-v{name}.dar)
rm -rf $$TMP_DIR
Expand Down

0 comments on commit 4d02b07

Please sign in to comment.