Skip to content

Commit

Permalink
Correct PackageIdentifier->PackageName (fixes #4215)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 14, 2018
1 parent 97fa18c commit 0657080
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stack/Build/ConstructPlan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ mkUnregisterLocal tasks dirtyReason localDumpPkgs sourceMap initialBuildSteps =
-- None of the above, keep it!
| otherwise = Nothing
where
name = displayC ident
name :: PackageName
name = pkgName ident

-- | Given a 'LocalPackage' and its 'lpTestBench', adds a 'Task' for
-- running its tests and benchmarks.
Expand Down
6 changes: 6 additions & 0 deletions test/integration/tests/4215-missing-unregister/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import StackTest

main :: IO ()
main = do
stack ["build", "--stack-yaml", "stack1.yaml"]
stack ["build", "--stack-yaml", "stack2.yaml"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resolver: ghc-8.2.2
packages:
- v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resolver: ghc-8.2.2
packages:
- v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: foo
version: 1

dependencies:
- base

library: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: foo
version: 2

dependencies:
- base

library: {}

0 comments on commit 0657080

Please sign in to comment.