-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Spago from a nested directory other than workspace root #1310
Open
fsoikin
wants to merge
36
commits into
purescript:master
Choose a base branch
from
fsoikin:nested-launch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+593
−235
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
b0187a7
Run Spago from a nested directory other than workspace root
fsoikin fbab1c3
The high spirits of questionable formatting are not to be trifled with
fsoikin ebba9da
When the slash is forward, every forest friend will notice
fsoikin d2dff38
Merge branch 'master' into nested-launch
f-f 8bc1cf7
Merge branch 'master' into nested-launch
f-f 2b79ca1
Merge branch 'master' into nested-launch
f-f 171b93f
Do not attempt to load subpackages nested under malformed config
fsoikin 2048499
Try to fix CI
fsoikin b467814
Debug MacOS test failure
fsoikin e15dcb5
Debug MacOS test failure
fsoikin 6580f30
Debug MacOS test failure
fsoikin 41fe063
Debug MacOS test failure
fsoikin 124fc0f
Debug MacOS test failure
fsoikin a5f5bf0
Debug MacOS test failure
fsoikin 443fdc4
Debug MacOS test failure
fsoikin 5507c42
Debug MacOS test failure
fsoikin e3987ab
Debug MacOS test failure
fsoikin d7d0ecf
Debug MacOS test failure
fsoikin c0c918b
Debug MacOS test failure
fsoikin 9f2b7f4
Debug MacOS test failure
fsoikin be6712e
Debug MacOS test failure
fsoikin 38ff466
Debug MacOS test failure
fsoikin eb0df61
Remove debug cruft
fsoikin 893d7c8
Remove more debug cruft
fsoikin 2fb281b
Can't forget about Windows
fsoikin f6d9ec9
Review feedback: rename variables, add comment, add type signatures
fsoikin d1a15af
Autoformatter
fsoikin cc42d8e
Merge branch 'master' into nested-launch
fsoikin 57a4768
Mention pruning reasoning
fsoikin 67e96f1
Merge remote-tracking branch 'refs/remotes/origin/nested-launch' into…
fsoikin 1bf9a7a
Merge branch 'master' into nested-launch
f-f b50b0f1
Merge branch 'master' into nested-launch
f-f 52d8264
Merge branch 'master' into nested-launch
fsoikin 2b23022
Fix test fixtures to account for prelude 6.0.2
fsoikin 72092f4
More such spots
fsoikin 8b09d98
And two more spots
fsoikin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package: | ||
name: a | ||
dependencies: | ||
- prelude |
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,4 @@ | ||
package: | ||
name: b | ||
dependencies: | ||
- prelude |
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,12 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: a | ||
|
||
Downloading dependencies... | ||
Building... | ||
purs compile: No files found using pattern: a/src/**/*.purs | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. |
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,12 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: d | ||
|
||
Downloading dependencies... | ||
Building... | ||
purs compile: No files found using pattern: d/src/**/*.purs | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. |
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,17 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting 3 packages to build: | ||
c | ||
d | ||
nested-workspace | ||
|
||
Downloading dependencies... | ||
Building... | ||
purs compile: No files found using pattern: c/src/**/*.purs | ||
purs compile: No files found using pattern: d/src/**/*.purs | ||
purs compile: No files found using pattern: src/**/*.purs | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. |
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,17 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting 3 packages to build: | ||
a | ||
b | ||
foo | ||
|
||
Downloading dependencies... | ||
Building... | ||
purs compile: No files found using pattern: a/src/**/*.purs | ||
purs compile: No files found using pattern: b/src/**/*.purs | ||
purs compile: No files found using pattern: src/**/*.purs | ||
Src Lib All | ||
Warnings 0 0 0 | ||
Errors 0 0 0 | ||
|
||
✓ Build succeeded. |
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,4 @@ | ||
package: | ||
name: c | ||
dependencies: | ||
- prelude |
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,4 @@ | ||
package: | ||
name: d | ||
dependencies: | ||
- prelude |
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,8 @@ | ||
package: | ||
name: nested-workspace | ||
dependencies: | ||
- prelude | ||
|
||
workspace: | ||
packageSet: | ||
registry: 41.5.0 |
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 @@ | ||
package: | ||
name: foo | ||
dependencies: | ||
- console | ||
- effect | ||
- prelude | ||
|
||
workspace: | ||
packageSet: | ||
registry: 41.5.0 |
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,3 @@ | ||
package: | ||
name: c | ||
dependencies: [] |
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,3 @@ | ||
package: | ||
title: b # `title` is not a valid field, this config will error out on parsing. | ||
dependencies: [] |
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,3 @@ | ||
package: | ||
name: d | ||
dependencies: [] |
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,3 @@ | ||
package: | ||
name: a | ||
dependencies: [] |
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,9 @@ | ||
Reading Spago workspace configuration... | ||
‼ Failed to read config at "<test-dir>/a/b/spago.yaml" | ||
Skipping it and all its subprojects | ||
|
||
✘ Selected package bogus was not found in the local packages. | ||
All available packages: | ||
a | ||
d | ||
root |
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,6 @@ | ||
package: | ||
name: root | ||
dependencies: [] | ||
workspace: | ||
packageSet: | ||
registry: 0.0.1 |
Empty file.
Empty file.
Empty file.
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 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Instead found "../spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
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,12 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Instead found these: | ||
"../../spago.yml" | ||
"spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
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,13 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Instead found these: | ||
"../../../spago.yml" | ||
"../spago.yml" | ||
"spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
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,12 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Instead found these: | ||
"../../../spago.yml" | ||
"../spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
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 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Instead found "spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
Empty file.
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,3 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ No spago.yaml found in the current directory or any of its parents. |
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
"prelude": { | ||
"type": "registry", | ||
"value": { | ||
"version": "6.0.1" | ||
"version": "6.0.2" | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.spago/p/console-6.1.0/src/**/*.purs | ||
.spago/p/effect-4.0.0/src/**/*.purs | ||
.spago/p/prelude-6.0.1/src/**/*.purs | ||
.spago/p/prelude-6.0.2/src/**/*.purs | ||
subpackage/src/**/*.purs | ||
subpackage/test/**/*.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.spago\p\console-6.1.0\src\**\*.purs | ||
.spago\p\effect-4.0.0\src\**\*.purs | ||
.spago\p\prelude-6.0.1\src\**\*.purs | ||
.spago\p\prelude-6.0.2\src\**\*.purs | ||
subpackage\src\**\*.purs | ||
subpackage\test\**\*.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✘ Couldn't parse Spago config, error: | ||
✘ No spago.yaml found in the current directory or any of its parents. | ||
|
||
|
||
Did not find "spago.yaml". Spago's configuration files must end with `.yaml`, not `.yml`. | ||
Try renaming "spago.yml" to "spago.yaml" or run `spago init` to initialize a new project. | ||
Instead found "spago.yml" | ||
Note that Spago config files should be named spago.yaml, not spago.yml. | ||
|
||
|
||
The configuration file help can be found here https://github.com/purescript/spago#the-configuration-file |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change and equivalent changes in other test fixtures are not related to the PR as such, but are fixing a different issue.
spago publish
to run a new build, even ifspago build
was run immediately before it, which in turn produces compiler progress output, and this compiler progress output was unexpected in test fixtures, causing the tests to fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fsoikin , can this be merged as-is? When an updated package set causes test breakage in the future, I suggest we continue patching until a permanent solution is found. The value-add of this PR is already big, as it is. Thanks again