mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
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:
parent
5ddbd5c511
commit
2418a966a8
@ -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 it’s < 80 characters so
|
||||
-- we do not get a line break.
|
||||
, ""
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user