Replace warning about new releases by something less scary (#5400)

Previously we emitted 3 lines starting with a capslock `WARNING` which
seems to scare some people. Now we emit two lines without the
`WARNING` and point to the release notes since that seems better than
explaining to users how they upgrade without telling them what
changed.

It’s still two lines, I couldn’t come up with anything shorter that
seems reasonable. We might want to reduce the frequency at which this
is displayed as well but for now this should do.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-04-03 11:57:11 +02:00 committed by GitHub
parent 5ddbd5c511
commit 2418a966a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,11 @@ versionChecks Env{..} =
-- Project SDK version is outdated.
when (not isHead && projectSdkVersionIsOld) $ do
hPutStr stderr . unlines $
[ "WARNING: Using an outdated version of the DAML SDK in project."
, "To migrate to the latest DAML SDK, please set the sdk-version"
, "field in daml.yaml to " <> versionToString latestVersion
[ "DAML SDK " <> versionToString latestVersion <> " has been released!"
, "See https://github.com/digital-asset/daml/releases/tag/v"
<> versionToString latestVersion <> " for details."
-- Carefully crafted wording to make sure its < 80 characters so
-- we do not get a line break.
, ""
]