Skip to content

Commit d701441

Browse files
committed
Fix tests
1 parent 31bab07 commit d701441

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spago.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 25f34ee90c40276d788a66523e0833707cf16645eadde749c8a953606886ab03
7+
-- hash: b88f8100a3b763c486e0f8eef011ce424bcca172077abeb8b10114b874428683
88

99
name: spago
10-
version: 0.16.0
10+
version: 0.17.0
1111
description: Please see the README on GitHub at <https://github.com/purescript/spago#readme>
1212
homepage: https://github.com/purescript/spago#readme
1313
bug-reports: https://github.com/purescript/spago/issues
@@ -147,6 +147,7 @@ test-suite spec
147147
other-modules:
148148
BumpVersionSpec
149149
Spago.Build.ParserSpec
150+
Spago.Command.PathSpec
150151
SpagoSpec
151152
Spec
152153
UnitSpec

src/Spago/Version.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ bumpVersion
9999
-> RIO env ()
100100
bumpVersion dryRun spec = do
101101
newBowerConfig <- Bower.generateBowerJson
102-
oldConfig <- readTextFile Bower.path
102+
oldConfig :: Either SomeException Text <- try $ readTextFile Bower.path
103103

104104
Git.requireCleanWorkingTree
105105

@@ -113,8 +113,8 @@ bumpVersion dryRun spec = do
113113
Bower.runBowerInstall
114114
clean <- Git.hasCleanWorkingTree
115115
unless clean $ do
116-
logDebug $ display oldConfig
117-
logDebug $ display newBowerConfig
116+
logDebug $ displayShow oldConfig
117+
logDebug $ displayShow newBowerConfig
118118
die [ "A new " <> Bower.path <> " has been generated. Please commit this and run `bump-version` again." ]
119119

120120
let tagAction = DryAction

0 commit comments

Comments
 (0)