Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Use Paths module to get program version #373

Merged
merged 4 commits into from
Jun 6, 2019
Merged

Commits on Jun 6, 2019

  1. cli: Use Paths module to get program version

    embedFile wasn't working for me in ghci.
    
      lib/cli/src/Cardano/CLI.hs:275:27: error:
          • Exception when trying to run compile-time code:
              ../../cardano-wallet.cabal: openBinaryFile: does not exist (No such file or directory)
            Code: embedFile "../../cardano-wallet.cabal"
          • In the untyped splice: $(embedFile "../../cardano-wallet.cabal")
          |
      275 |     let cabal = B8.unpack $(embedFile "../../cardano-wallet.cabal")
          |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    There is another easier way to get the program version (assuming all
    cabal files have the same version).
    rvl authored and KtorZ committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    9de4751 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    efe88d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27da10a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    082a72e View commit details
    Browse the repository at this point in the history