Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 350d158

Browse files
authored
Merge pull request #3394 from input-output-hk/bump-report-server
report-server: bump to latest master
2 parents 9e0a2a2 + 74402ed commit 350d158

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

infra/Pos/Infra/Reporting/Http.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
2-
31
module Pos.Infra.Reporting.Http
42
( sendReport
53
, sendReportNodeImpl
@@ -13,11 +11,13 @@ import Control.Exception.Safe (catchAny, try)
1311
import Data.Aeson (encode)
1412
import qualified Data.List.NonEmpty as NE
1513
import Data.Time.Clock (getCurrentTime)
14+
import Data.Version (showVersion)
1615
import Formatting (sformat, shown, string, (%))
1716
import Network.HTTP.Client (httpLbs, newManager, parseUrlThrow)
1817
import qualified Network.HTTP.Client.MultipartFormData as Form
1918
import Network.HTTP.Client.TLS (tlsManagerSettings)
20-
import Pos.ReportServer.Report (ReportInfo (..), ReportType (..))
19+
import Pos.ReportServer.Report (BackendVersion (..), ReportInfo (..), ReportType (..),
20+
Version (..))
2121
import System.FilePath (takeFileName)
2222
import System.Info (arch, os)
2323

@@ -26,7 +26,7 @@ import Pos.Crypto (ProtocolMagic (..))
2626
import Pos.Infra.Reporting.Exceptions (ReportingError (..))
2727
import Pos.Infra.Reporting.MemState ()
2828
import Pos.Util.CompileInfo (CompileTimeInfo)
29-
import Pos.Util.Trace (Trace, Severity (..), traceWith)
29+
import Pos.Util.Trace (Severity (..), Trace, traceWith)
3030
import Pos.Util.Util ((<//>))
3131

3232

@@ -69,7 +69,7 @@ sendReport pm compileInfo mLogFile reportType appName reportServerUri = do
6969
-- We are using version of 'cardano-sl-infra' here. We agreed
7070
-- that the version of 'cardano-sl' and it subpackages should
7171
-- be same.
72-
, rVersion = version
72+
, rVersion = BackendVersion . Version . fromString . showVersion $ version
7373
, rBuild = pretty compileInfo
7474
, rOS = toText (os <> "-" <> arch)
7575
, rMagic = getProtocolMagic pm

pkgs/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14539,12 +14539,12 @@ license = stdenv.lib.licenses.mit;
1453914539
mkDerivation {
1454014540

1454114541
pname = "cardano-report-server";
14542-
version = "0.4.10";
14542+
version = "0.5.10";
1454314543
src = fetchgit {
1454414544

1454514545
url = "https://github.com/input-output-hk/cardano-report-server.git";
14546-
sha256 = "0chhbnrl68aqjfhkqvq53v572zsg52mj8pjxl3n7nnbc006cqs49";
14547-
rev = "81eea7361a75923f9402fcb7840fb36722dbf88e";
14546+
sha256 = "02n86wbfr3z2xqrc8g8naj0dc5j4644y0l295qzdqlfynmz6a82z";
14547+
rev = "9b96874d0f234554a5779d98762cc0a6773a532a";
1454814548

1454914549
};
1455014550
isLibrary = true;

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ packages:
7373
extra-dep: true
7474
- location:
7575
git: https://github.com/input-output-hk/cardano-report-server.git
76-
commit: 81eea7361a75923f9402fcb7840fb36722dbf88e # master 0.4.10
76+
commit: 9b96874d0f234554a5779d98762cc0a6773a532a
7777
extra-dep: true
7878
# These three are needed for cardano-sl-networking
7979
- location:

0 commit comments

Comments
 (0)