Skip to content

Commit 611a705

Browse files
authored
Update the suggestion for compiler version override to the new syntax (#736)
1 parent 960a310 commit 611a705

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ Example:
559559
let upstream = -- <package set URL here>
560560
in upstream
561561
with foobar = ../foobar/spago.dhall as Location
562-
}
563562
```
564563

565564

src/Spago/Messages.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,11 @@ pursVersionMismatch currentVersion minVersion = makeMessage
188188
, "There are a few ways to solve this:"
189189
, "- install a compatible `purs` version (i.e. in the same 'semver range' as the one in the package set)"
190190
, "- if the `purs` version is 'too new', you can try using `spago upgrade-set` to upgrade to the latest package set"
191-
, "- if you know what you're doing and you want to disable this check, you can override the `version` of the `metadata` package in the packages.dhall:"
191+
, "- if you know what you're doing and you want to disable this check, you can override the `version` of the `metadata` package in the packages.dhall, e.g.:"
192192
, ""
193-
, " let overrides = { metadata = upstream.metadata // { version = \"v" <> currentVersion <> "\" } }"
193+
, " let upstream = <package-set url here>"
194+
, " in upstream"
195+
, " with metadata.version = \"v" <> currentVersion <> "\""
194196
, ""
195197
]
196198

0 commit comments

Comments
 (0)