packages feed

stackctl 1.1.0.3 → 1.1.0.4

raw patch · 3 files changed

+14/−8 lines, 3 files

Files

CHANGELOG.md view
@@ -1,4 +1,9 @@-## [_Unreleased_](https://github.com/freckle/stackctl/compare/v1.1.0.3...main)+## [_Unreleased_](https://github.com/freckle/stackctl/compare/v1.1.0.4...main)++## [v1.1.0.4](https://github.com/freckle/stackctl/compare/v1.1.0.3...v1.1.0.4)++- Fix bug where only the last spec in a multi-spec case had its changes present+  in the output file generated by `changes`.  ## [v1.1.0.3](https://github.com/freckle/stackctl/compare/v1.1.0.2...v1.1.0.3) 
src/Stackctl/Spec/Changes.hs view
@@ -48,6 +48,9 @@   => ChangesOptions   -> m () runChanges ChangesOptions {..} = do+  -- Clear file before starting, as we have to use append for each spec+  liftIO $ T.writeFile scoOutput ""+   specs <- discoverSpecs    for_ specs $ \spec -> do@@ -60,9 +63,7 @@           exitFailure         Right mChangeSet -> do           colors <- getColorsStdout-          let name = pack $ stackSpecPathFilePath $ stackSpecSpecPath spec-          liftIO $ T.writeFile scoOutput $ formatChangeSet-            colors-            name-            scoFormat-            mChangeSet+          let+            name = pack $ stackSpecPathFilePath $ stackSpecSpecPath spec+            formatted = formatChangeSet colors name scoFormat mChangeSet+          liftIO $ T.appendFile scoOutput $ formatted <> "\n"
stackctl.cabal view
@@ -1,6 +1,6 @@ cabal-version:   1.18 name:            stackctl-version:         1.1.0.3+version:         1.1.0.4 license:         MIT license-file:    LICENSE copyright:       2022 Renaissance Learning Inc