b9 0.5.68.2 → 0.5.68.3
raw patch · 5 files changed
+22/−14 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +9/−4
- README.md +7/−6
- b9.cabal +1/−1
- src/cli/Main.hs +2/−2
- src/lib/B9/B9Logging.hs +3/−1
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Changelog for B9 +## 0.5.68.3++* Fix issue #10: The CLI parameter `--network host` is ignored+* Flush the log output after every log message to stdout+ ## 0.5.68.2 * Fix a bug in the shared image Shake rule causing unnecessary rebuilds@@ -8,17 +13,17 @@ ## 0.5.68.1 -* Fix positional argument enumeration in the `Enviromnent`; CLI arguments +* Fix positional argument enumeration in the `Enviromnent`; CLI arguments are passed via the keys `arg_1 .. arg_N` in the `Environment`.- They are currently passed in reverse order and start from `arg_0` + They are currently passed in reverse order and start from `arg_0` instead of `arg_1`. See github issues #6 and #9. -* Fix #7 shared image meta info download and +* Fix #7 shared image meta info download and generalize and simplify `B9ConfigOverrid` while at it. * Remove `Trying to load config file` messages -* Fix #8 - resurrect the environment variable `buildDirRoot`. +* Fix #8 - resurrect the environment variable `buildDirRoot`. ## 0.5.68
README.md view
@@ -6,12 +6,13 @@ ### Overview -There is a *DSL* that is described by a few benign Haskell `data` types that can -be `B9` can `read` and `show`. It can be put into a **text file** and be interpreted-by a **command line invokation**. +**B9** is an executable and a Haskell library, that consumes a Haskell term describing +the generation of VM-Images. -Also, `B9` can be used as **Haskell library**. +A few core `data` types form an EDSL, and `B9` contains functions to `read` and `show` then. +Such a term can then be stored into a **text file** and is interpreted by a **command line invokation**. + ### Installation on NixOS * As **command line utility** in current directory:@@ -40,8 +41,8 @@ packages: - location:- git: git@github.com:sheyll/b9-vm-image-builder.git- tag: 0.5.68.2+ github: git@github.com:sheyll/b9-vm-image-builder.git+ commit: 467c4bf8274a50a72a2a720f3c2710926fb845b2 extra-dep: true ### Features
b9.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: b9-version: 0.5.68.2+version: 0.5.68.3 synopsis: A tool and library for building virtual machine images.
src/cli/Main.hs view
@@ -96,8 +96,8 @@ Endo (repository .~ repo) <> Endo (repositoryCache .~ (Path <$> mRepoCache)) <> case libvirtNet of- Just n- | n /= hostNetworkMagicValue -> Endo (set (libVirtLXCConfigs . _Just . networkId) (Just n))+ Just n | n /= hostNetworkMagicValue -> Endo (set (libVirtLXCConfigs . _Just . networkId) (Just n))+ Just n | n == hostNetworkMagicValue -> Endo (set (libVirtLXCConfigs . _Just . networkId) Nothing) _ -> mempty in B9ConfigOverride {_customB9ConfigPath = Path <$> cfg, _customB9Config = b9cfg, _customEnvironment = mempty}
src/lib/B9/B9Logging.hs view
@@ -96,7 +96,9 @@ logImpl :: Maybe LogLevel -> Maybe SysIO.Handle -> LogLevel -> String -> IO () logImpl minLevel mh level msg = do lm <- formatLogMsg level msg- when (isJust minLevel && level >= fromJust minLevel) (putStr lm)+ when (isJust minLevel && level >= fromJust minLevel) $ do+ putStr lm+ SysIO.hFlush SysIO.stdout when (isJust mh) $ do SysIO.hPutStr (fromJust mh) lm SysIO.hFlush (fromJust mh)