Add a check of the current behaviour importing duplicates
[cabal.git] / cabal-testsuite / PackageTests / ConditionalAndImport / cabal.out
blob534e0301bec346ff201c3dc241445e852e356b31
1 # cabal v2-update
2 Downloading the latest package list from test-local-repo
3 # cabal v2-run
4 Configuration is affected by the following files:
5 - cabal.project
6 Configuration is affected by the following files:
7 - extra.project
8     imported by: cabal.project
9 Resolving dependencies...
10 Build profile: -w ghc-<GHCVER> -O1
11 In order, the following will be built:
12  - some-exe-0.0.1.0 (exe:some-exe) (requires build)
13 Configuring some-exe-0.0.1.0...
14 Preprocessing executable 'some-exe' for some-exe-0.0.1.0...
15 Building executable 'some-exe' for some-exe-0.0.1.0...
16 Installing executable some-exe in <PATH>
17 Warning: The directory <ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/incoming/new-<RAND><ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/<PACKAGE>-<HASH>/bin is not in the system search path.
18 # checking cyclical loopback of a project importing itself
19 # cabal v2-build
20 Error: [Cabal-7090]
21 Error parsing project file <ROOT>/cyclical-0-self.project:
22 cyclical import of cyclical-0-self.project;
23   cyclical-0-self.project
24     imported by: cyclical-0-self.project
25 # checking cyclical with hops; out and back
26 # cabal v2-build
27 Error: [Cabal-7090]
28 Error parsing project file <ROOT>/cyclical-1-out-back.project:
29 cyclical import of cyclical-1-out-back.project;
30   cyclical-1-out-back.project
31     imported by: cyclical-1-out-back.config
32     imported by: cyclical-1-out-back.project
33 # checking cyclical with hops; out to a config that imports itself
34 # cabal v2-build
35 Error: [Cabal-7090]
36 Error parsing project file <ROOT>/cyclical-1-out-self.project:
37 cyclical import of cyclical-1-out-self.config;
38   cyclical-1-out-self.config
39     imported by: cyclical-1-out-self.config
40     imported by: cyclical-1-out-self.project
41 # checking cyclical with hops; out, out, twice back
42 # cabal v2-build
43 Error: [Cabal-7090]
44 Error parsing project file <ROOT>/cyclical-2-out-out-backback.project:
45 cyclical import of cyclical-2-out-out-backback.project;
46   cyclical-2-out-out-backback.project
47     imported by: cyclical-2-out-out-backback-b.config
48     imported by: cyclical-2-out-out-backback-a.config
49     imported by: cyclical-2-out-out-backback.project
50 # checking cyclical with hops; out, out, once back
51 # cabal v2-build
52 Error: [Cabal-7090]
53 Error parsing project file <ROOT>/cyclical-2-out-out-back.project:
54 cyclical import of cyclical-2-out-out-back-a.config;
55   cyclical-2-out-out-back-a.config
56     imported by: cyclical-2-out-out-back-b.config
57     imported by: cyclical-2-out-out-back-a.config
58     imported by: cyclical-2-out-out-back.project
59 # checking cyclical with hops; out, out to a config that imports itself
60 # cabal v2-build
61 Error: [Cabal-7090]
62 Error parsing project file <ROOT>/cyclical-2-out-out-self.project:
63 cyclical import of cyclical-2-out-out-self-b.config;
64   cyclical-2-out-out-self-b.config
65     imported by: cyclical-2-out-out-self-b.config
66     imported by: cyclical-2-out-out-self-a.config
67     imported by: cyclical-2-out-out-self.project
68 # checking that cyclical check doesn't false-positive on same file names in different folders; hoping within a folder and then into a subfolder
69 # cabal v2-build
70 Configuration is affected by the following files:
71 - noncyclical-same-filename-a.config
72     imported by: noncyclical-same-filename-a.project
73 Configuration is affected by the following files:
74 - noncyclical-same-filename-a.project
75 Configuration is affected by the following files:
76 - same-filename/noncyclical-same-filename-a.config
77     imported by: noncyclical-same-filename-a.config
78     imported by: noncyclical-same-filename-a.project
79 Resolving dependencies...
80 Build profile: -w ghc-<GHCVER> -O1
81 In order, the following will be built:
82  - my-0.1 (lib:my) (first run)
83 Configuring my-0.1...
84 Preprocessing library for my-0.1...
85 Building library for my-0.1...
86 # checking that cyclical check doesn't false-positive on same file names in different folders; hoping into a subfolder and then back out again
87 # cabal v2-build
88 Configuration is affected by the following files:
89 - noncyclical-same-filename-b.config
90     imported by: same-filename/noncyclical-same-filename-b.config
91     imported by: noncyclical-same-filename-b.project
92 Configuration is affected by the following files:
93 - noncyclical-same-filename-b.project
94 Configuration is affected by the following files:
95 - same-filename/noncyclical-same-filename-b.config
96     imported by: noncyclical-same-filename-b.project
97 Up to date
98 # checking that cyclical check catches a same file name that imports itself
99 # cabal v2-build
100 Error: [Cabal-7090]
101 Error parsing project file <ROOT>/cyclical-same-filename-out-out-self.project:
102 cyclical import of same-filename/cyclical-same-filename-out-out-self.config;
103   same-filename/cyclical-same-filename-out-out-self.config
104     imported by: same-filename/cyclical-same-filename-out-out-self.config
105     imported by: cyclical-same-filename-out-out-self.config
106     imported by: cyclical-same-filename-out-out-self.project
107 # checking that cyclical check catches importing its importer (with the same file name)
108 # cabal v2-build
109 Error: [Cabal-7090]
110 Error parsing project file <ROOT>/cyclical-same-filename-out-out-backback.project:
111 cyclical import of cyclical-same-filename-out-out-backback.project;
112   cyclical-same-filename-out-out-backback.project
113     imported by: same-filename/cyclical-same-filename-out-out-backback.config
114     imported by: cyclical-same-filename-out-out-backback.config
115     imported by: cyclical-same-filename-out-out-backback.project
116 # checking that cyclical check catches importing its importer's importer (hopping over same file names)
117 # cabal v2-build
118 Error: [Cabal-7090]
119 Error parsing project file <ROOT>/cyclical-same-filename-out-out-back.project:
120 cyclical import of cyclical-same-filename-out-out-back.config;
121   cyclical-same-filename-out-out-back.config
122     imported by: same-filename/cyclical-same-filename-out-out-back.config
123     imported by: cyclical-same-filename-out-out-back.config
124     imported by: cyclical-same-filename-out-out-back.project
125 # checking that imports work skipping into a subfolder and then back out again and again
126 # cabal v2-build
127 Configuration is affected by the following files:
128 - hops-0.project
129 Configuration is affected by the following files:
130 - hops-2.config
131     imported by: hops/hops-1.config
132     imported by: hops-0.project
133 Configuration is affected by the following files:
134 - hops-4.config
135     imported by: hops/hops-3.config
136     imported by: hops-2.config
137     imported by: hops/hops-1.config
138     imported by: hops-0.project
139 Configuration is affected by the following files:
140 - hops-6.config
141     imported by: hops/hops-5.config
142     imported by: hops-4.config
143     imported by: hops/hops-3.config
144     imported by: hops-2.config
145     imported by: hops/hops-1.config
146     imported by: hops-0.project
147 Configuration is affected by the following files:
148 - hops-8.config
149     imported by: hops/hops-7.config
150     imported by: hops-6.config
151     imported by: hops/hops-5.config
152     imported by: hops-4.config
153     imported by: hops/hops-3.config
154     imported by: hops-2.config
155     imported by: hops/hops-1.config
156     imported by: hops-0.project
157 Configuration is affected by the following files:
158 - hops/hops-1.config
159     imported by: hops-0.project
160 Configuration is affected by the following files:
161 - hops/hops-3.config
162     imported by: hops-2.config
163     imported by: hops/hops-1.config
164     imported by: hops-0.project
165 Configuration is affected by the following files:
166 - hops/hops-5.config
167     imported by: hops-4.config
168     imported by: hops/hops-3.config
169     imported by: hops-2.config
170     imported by: hops/hops-1.config
171     imported by: hops-0.project
172 Configuration is affected by the following files:
173 - hops/hops-7.config
174     imported by: hops-6.config
175     imported by: hops/hops-5.config
176     imported by: hops-4.config
177     imported by: hops/hops-3.config
178     imported by: hops-2.config
179     imported by: hops/hops-1.config
180     imported by: hops-0.project
181 Configuration is affected by the following files:
182 - hops/hops-9.config
183     imported by: hops-8.config
184     imported by: hops/hops-7.config
185     imported by: hops-6.config
186     imported by: hops/hops-5.config
187     imported by: hops-4.config
188     imported by: hops/hops-3.config
189     imported by: hops-2.config
190     imported by: hops/hops-1.config
191     imported by: hops-0.project
192 Up to date
193 # checking conflicting constraints skipping into a subfolder and then back out again and again
194 # cabal v2-build
195 Configuration is affected by the following files:
196 - oops-0.project
197 Configuration is affected by the following files:
198 - oops-2.config
199     imported by: oops/oops-1.config
200     imported by: oops-0.project
201 Configuration is affected by the following files:
202 - oops-4.config
203     imported by: oops/oops-3.config
204     imported by: oops-2.config
205     imported by: oops/oops-1.config
206     imported by: oops-0.project
207 Configuration is affected by the following files:
208 - oops-6.config
209     imported by: oops/oops-5.config
210     imported by: oops-4.config
211     imported by: oops/oops-3.config
212     imported by: oops-2.config
213     imported by: oops/oops-1.config
214     imported by: oops-0.project
215 Configuration is affected by the following files:
216 - oops-8.config
217     imported by: oops/oops-7.config
218     imported by: oops-6.config
219     imported by: oops/oops-5.config
220     imported by: oops-4.config
221     imported by: oops/oops-3.config
222     imported by: oops-2.config
223     imported by: oops/oops-1.config
224     imported by: oops-0.project
225 Configuration is affected by the following files:
226 - oops/oops-1.config
227     imported by: oops-0.project
228 Configuration is affected by the following files:
229 - oops/oops-3.config
230     imported by: oops-2.config
231     imported by: oops/oops-1.config
232     imported by: oops-0.project
233 Configuration is affected by the following files:
234 - oops/oops-5.config
235     imported by: oops-4.config
236     imported by: oops/oops-3.config
237     imported by: oops-2.config
238     imported by: oops/oops-1.config
239     imported by: oops-0.project
240 Configuration is affected by the following files:
241 - oops/oops-7.config
242     imported by: oops-6.config
243     imported by: oops/oops-5.config
244     imported by: oops-4.config
245     imported by: oops/oops-3.config
246     imported by: oops-2.config
247     imported by: oops/oops-1.config
248     imported by: oops-0.project
249 Configuration is affected by the following files:
250 - oops/oops-9.config
251     imported by: oops-8.config
252     imported by: oops/oops-7.config
253     imported by: oops-6.config
254     imported by: oops/oops-5.config
255     imported by: oops-4.config
256     imported by: oops/oops-3.config
257     imported by: oops-2.config
258     imported by: oops/oops-1.config
259     imported by: oops-0.project
260 Resolving dependencies...
261 Error: [Cabal-7107]
262 Could not resolve dependencies:
263 [__0] trying: oops-0.1 (user goal)
264 [__1] next goal: hashable (dependency of oops)
265 [__1] rejecting: hashable-1.4.3.0
266       (constraint from oops/oops-9.config requires ==1.4.2.0)
267         imported by: oops-8.config
268         imported by: oops/oops-7.config
269         imported by: oops-6.config
270         imported by: oops/oops-5.config
271         imported by: oops-4.config
272         imported by: oops/oops-3.config
273         imported by: oops-2.config
274         imported by: oops/oops-1.config
275         imported by: oops-0.project
276 [__1] rejecting: hashable-1.4.2.0
277       (constraint from oops-0.project requires ==1.4.3.0)
278 [__1] fail (backjumping, conflict set: hashable, oops)
279 After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: hashable (3), oops (2)
280 # checking if we detect when the same config is imported via many different paths (we don't)
281 # cabal v2-build
282 Up to date
283 # checking bad conditional
284 # cabal v2-build
285 Error: [Cabal-7090]
286 Error parsing project file <ROOT>/bad-conditional.project:
287 Cannot set compiler in a conditional clause of a cabal project file
288 # checking that missing package message lists configuration provenance
289 # cabal v2-build