File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,11 @@ One use case for imports is to specify a `Stackage <https://www.stackage.org/>`
89
89
snapshot, so that your cabal project can use the same set of packages as
90
90
that snapshot. To use the ``lts-21.25 `` resolver, you can write
91
91
``import: https://www.stackage.org/lts-21.25/cabal.config `` in your
92
- ``cabal.project ``. Note that Stackage does not guarantee that these will work
93
- with regards to revisions.
92
+ ``cabal.project ``.
93
+
94
+ There are a number of limitations that come with this approach however; please
95
+ see :ref: `How can I have a reproducible set of versions for my dependencies?<how reproducible> ` for
96
+ more information.
94
97
95
98
Specifying the local packages
96
99
-----------------------------
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ for each package using :cfg-field:`profiling-detail`::
104
104
Alternately, you can call ``cabal build --enable-profiling `` to
105
105
temporarily build with profiling.
106
106
107
+ .. _how reproducible :
108
+
107
109
How can I have a reproducible set of versions for my dependencies?
108
110
------------------------------------------------------------------
109
111
@@ -134,6 +136,17 @@ development environments.
134
136
.. _Stackage : https://stackage.org/
135
137
.. _versions of packages in lts-19.2 : https://www.stackage.org/lts-19.2
136
138
139
+ Limitations
140
+ ^^^^^^^^^^^
141
+
142
+ Stackage does not guarantee that the config files will work with revisions, and
143
+ it's not currently possible to `override used versions of packages <https://github.com/haskell/cabal/issues/9511> `
144
+ or to `specify revisions <https://github.com/haskell/cabal/issues/7833> ` using
145
+ cabal.
146
+
147
+ To mitigate these shortcomings, you can download the config file that is linked
148
+ to and remove the troublesome constraints.
149
+
137
150
How it works
138
151
============
139
152
You can’t perform that action at this time.
0 commit comments