File tree Expand file tree Collapse file tree 7 files changed +109
-0
lines changed
message-index/messages/S-4804 Expand file tree Collapse file tree 7 files changed +109
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : blah
2
+
3
+ dependencies :
4
+ - base >= 4.7 && < 5
5
+ - say >= 0.1.0.1
6
+
7
+ library :
8
+ source-dirs : src
9
+
10
+ executables :
11
+ blah-exe :
12
+ main : Main.hs
13
+ source-dirs : app
14
+ dependencies :
15
+ - blah
Original file line number Diff line number Diff line change
1
+ name : blah
2
+
3
+ dependencies :
4
+ - base >= 4.7 && < 5
5
+ - say >= 100.2.0.1
6
+
7
+ library :
8
+ source-dirs : src
9
+
10
+ executables :
11
+ blah-exe :
12
+ main : Main.hs
13
+ source-dirs : app
14
+ dependencies :
15
+ - blah
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Package version does not match Stack configuration
3
+ ---
4
+
5
+ The specific version of the package is not provided by the snapshot. The error that results from ` stack build ` is:
6
+ ``` text
7
+ Error: [S-4804]
8
+ Stack failed to construct a build plan.
9
+
10
+ While constructing the build plan, Stack encountered the following exceptions:
11
+
12
+ In the dependencies for blah-0.1.0.0:
13
+ say-0.1.0.1 from Stack configuration does not match >=100.2.0.1
14
+ needed since blah is a build target.
15
+
16
+ Some different approaches to resolving this:
17
+
18
+ * Set 'allow-newer: true'
19
+ in /home/USER/.stack/config.yaml to ignore all version constraints and build anyway.
20
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Stack failed to construct a build plan
3
+ summary : The package with the given name or version could not be found in the snapshot
4
+ severity : error
5
+ introduced : 2.9.3
6
+ ---
7
+
8
+ This error occurs when Stack configuration has no package with the given name or if the version number of a package does not match the one from Stack configuration. The error covers the following situations:
9
+
10
+ * The specific package does not exist
11
+ * The specific version of a given package does not exist
12
+
13
+ See the list of packages provided by the snapshots [ Stackage] ( https://www.stackage.org/ ) .
Original file line number Diff line number Diff line change
1
+ name : blah
2
+
3
+ dependencies :
4
+ - base >= 4.7 && < 5
5
+
6
+ library :
7
+ source-dirs : src
8
+
9
+ executables :
10
+ blah-exe :
11
+ main : Main.hs
12
+ source-dirs : app
13
+ dependencies :
14
+ - blah
Original file line number Diff line number Diff line change
1
+ name : blah
2
+
3
+ dependencies :
4
+ - base >= 4.7 && < 5
5
+ - wrong-package >= 0.2
6
+
7
+ library :
8
+ source-dirs : src
9
+
10
+ executables :
11
+ blah-exe :
12
+ main : Main.hs
13
+ source-dirs : app
14
+ dependencies :
15
+ - blah
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : The package does not exist in the snapshot
3
+ ---
4
+
5
+ The given package name is not provided by the snapshot. For example, ` stack build ` results in the error:
6
+ ```
7
+ Error: [S-4804]
8
+ Stack failed to construct a build plan.
9
+
10
+ While constructing the build plan, Stack encountered the following exceptions:
11
+
12
+ In the dependencies for blah-0.1.0.0:
13
+ wrong-package must match >=0.2, but the Stack configuration has no specified version (no
14
+ package with that name found, perhaps there is a typo in a package's
15
+ build-depends or an omission from the stack.yaml packages list?)
16
+ needed since blah is a build target.
17
+ ```
You can’t perform that action at this time.
0 commit comments