mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-16 22:28:29 +01:00
Warn about revivions in cabal.config #232
This commit is contained in:
parent
4d974136da
commit
f9632d734c
@ -87,7 +87,11 @@ getStackageCabalConfigR name = track "Handler.StackageHome.getStackageCabalConfi
|
|||||||
mapC (Chunk . showPackageLocal)
|
mapC (Chunk . showPackageLocal)
|
||||||
yield $ Chunk $ toBuilder '\n'
|
yield $ Chunk $ toBuilder '\n'
|
||||||
|
|
||||||
|
revisionsWarning =
|
||||||
|
toBuilder (asText "-- NOTE: Due to revisions, this file may not work. See:\n-- https://github.com/fpco/stackage-server/issues/232\n\n")
|
||||||
|
|
||||||
headerGlobal render = yield $ Chunk $
|
headerGlobal render = yield $ Chunk $
|
||||||
|
revisionsWarning ++
|
||||||
toBuilder (asText "-- Stackage snapshot from: ") ++
|
toBuilder (asText "-- Stackage snapshot from: ") ++
|
||||||
toBuilder (oldSnapshotUrl render) ++
|
toBuilder (oldSnapshotUrl render) ++
|
||||||
toBuilder (asText "\n-- Please append these contents to the end of your global cabal config file.\n-- To only use tested packages, uncomment the following line\n-- and comment out other remote-repo lines:\n-- remote-repo: stackage-") ++
|
toBuilder (asText "\n-- Please append these contents to the end of your global cabal config file.\n-- To only use tested packages, uncomment the following line\n-- and comment out other remote-repo lines:\n-- remote-repo: stackage-") ++
|
||||||
@ -97,6 +101,7 @@ getStackageCabalConfigR name = track "Handler.StackageHome.getStackageCabalConfi
|
|||||||
toBuilder '\n'
|
toBuilder '\n'
|
||||||
|
|
||||||
headerLocal render = yield $ Chunk $
|
headerLocal render = yield $ Chunk $
|
||||||
|
revisionsWarning ++
|
||||||
toBuilder (asText "-- Stackage snapshot from: ") ++
|
toBuilder (asText "-- Stackage snapshot from: ") ++
|
||||||
toBuilder (oldSnapshotUrl render) ++
|
toBuilder (oldSnapshotUrl render) ++
|
||||||
toBuilder (asText "\n-- Please place this file next to your .cabal file as cabal.config\n-- To only use tested packages, uncomment the following line:\n-- remote-repo: stackage-") ++
|
toBuilder (asText "\n-- Please place this file next to your .cabal file as cabal.config\n-- To only use tested packages, uncomment the following line:\n-- remote-repo: stackage-") ++
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user