-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In spago publish, when registry solver returns package versions not i…
…n local cache, install them before trying to build (#1283)
- Loading branch information
Showing
13 changed files
with
262 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test-fixtures/publish/1110-solver-different-version/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.spago/ | ||
output/ |
30 changes: 30 additions & 0 deletions
30
test-fixtures/publish/1110-solver-different-version/expected-stderr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: aaa | ||
|
||
Downloading dependencies... | ||
Building... | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. | ||
|
||
Passed preliminary checks. | ||
‼ Spago is in offline mode - not pushing the git tag v0.0.1 | ||
Building again with the build plan from the solver... | ||
Building... | ||
[1 of 3] Compiling Effect.Console | ||
[3 of 3] Compiling Lib | ||
[2 of 3] Compiling Effect.Class.Console | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. | ||
|
||
|
||
✓ Ready for publishing. Calling the registry.. | ||
|
||
|
||
✘ Spago is offline - not able to call the Registry. |
39 changes: 39 additions & 0 deletions
39
test-fixtures/publish/1110-solver-different-version/failure-stderr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: aaa | ||
|
||
Downloading dependencies... | ||
Building... | ||
[1 of 3] Compiling Effect.Console | ||
[3 of 3] Compiling Lib | ||
[2 of 3] Compiling Effect.Class.Console | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. | ||
|
||
Passed preliminary checks. | ||
‼ Spago is in offline mode - not pushing the git tag v0.0.1 | ||
Building again with the build plan from the solver... | ||
Building... | ||
[1 of 3] Compiling Effect.Console | ||
[ERROR 1/1 MissingFFIModule] .spago/p/console-6.1.0/src/Effect/Console.purs:1:1 | ||
|
||
v | ||
1 module Effect.Console where | ||
2 | ||
3 import Control.Bind (discard, bind, pure) | ||
... | ||
86 result <- inner | ||
87 groupEnd | ||
88 pure result | ||
^ | ||
|
||
The foreign module implementation for module Effect.Console is missing. | ||
|
||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 1 1 | ||
|
||
✘ Failed to build. |
18 changes: 18 additions & 0 deletions
18
test-fixtures/publish/1110-solver-different-version/spago.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package: | ||
name: aaa | ||
dependencies: | ||
- console: ">=6.0.0 <7.0.0" | ||
- effect: ">=4.0.0 <5.0.0" | ||
- prelude: ">=6.0.1 <7.0.0" | ||
- maybe: ">=6.0.0 <7.0.0" | ||
publish: | ||
version: 0.0.1 | ||
license: MIT | ||
location: | ||
githubOwner: purescript | ||
githubRepo: aaa | ||
workspace: | ||
packageSet: | ||
registry: 58.0.0 | ||
extraPackages: | ||
console: "6.0.0" |
10 changes: 10 additions & 0 deletions
10
test-fixtures/publish/1110-solver-different-version/src/Main.purs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Lib where | ||
|
||
import Prelude | ||
|
||
import Data.Maybe (Maybe(..), isNothing) | ||
import Effect (Effect) | ||
import Effect.Console (logShow) | ||
|
||
printNothing :: Effect Unit | ||
printNothing = logShow $ isNothing Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.