forked from purescript/spago
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clone Git monorepos with several dependencies only once (purescript#1275
- Loading branch information
Showing
22 changed files
with
324 additions
and
31 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
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
7 changes: 7 additions & 0 deletions
7
test-fixtures/monorepo/1208-no-double-cloning/expected-stderr/four-deps.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,7 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: consumer | ||
|
||
Downloading dependencies... | ||
No lockfile found, generating it... | ||
Lockfile written to spago.lock. Please commit this file. |
6 changes: 6 additions & 0 deletions
6
test-fixtures/monorepo/1208-no-double-cloning/expected-stderr/three-deps-offline.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,6 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: consumer | ||
|
||
|
||
✘ Repo <library-repo-path> does not have ref v3 in local cache. Cannot pull from origin in offline mode. |
8 changes: 8 additions & 0 deletions
8
test-fixtures/monorepo/1208-no-double-cloning/expected-stderr/three-deps.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,8 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: consumer | ||
|
||
Fetching from <library-repo-path> | ||
Downloading dependencies... | ||
No lockfile found, generating it... | ||
Lockfile written to spago.lock. Please commit this file. |
8 changes: 8 additions & 0 deletions
8
test-fixtures/monorepo/1208-no-double-cloning/expected-stderr/two-deps.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,8 @@ | ||
Reading Spago workspace configuration... | ||
|
||
✓ Selecting package to build: consumer | ||
|
||
Cloning <library-repo-path> | ||
Downloading dependencies... | ||
No lockfile found, generating it... | ||
Lockfile written to spago.lock. Please commit this file. |
4 changes: 4 additions & 0 deletions
4
test-fixtures/monorepo/1208-no-double-cloning/library/lib1/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,4 @@ | ||
package: | ||
name: lib1 | ||
dependencies: | ||
- prelude |
5 changes: 5 additions & 0 deletions
5
test-fixtures/monorepo/1208-no-double-cloning/library/lib2/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,5 @@ | ||
package: | ||
name: lib2 | ||
dependencies: | ||
- lib1 | ||
- prelude |
6 changes: 6 additions & 0 deletions
6
test-fixtures/monorepo/1208-no-double-cloning/library/lib3/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,6 @@ | ||
package: | ||
name: lib3 | ||
dependencies: | ||
- lib1 | ||
- lib2 | ||
- prelude |
5 changes: 5 additions & 0 deletions
5
test-fixtures/monorepo/1208-no-double-cloning/library/lib4/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,5 @@ | ||
package: | ||
name: lib4 | ||
dependencies: | ||
- lib1 | ||
- prelude |
3 changes: 3 additions & 0 deletions
3
test-fixtures/monorepo/1208-no-double-cloning/library/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,3 @@ | ||
workspace: | ||
packageSet: | ||
registry: 56.4.0 |
27 changes: 27 additions & 0 deletions
27
test-fixtures/monorepo/1208-no-double-cloning/spago-four-deps.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,27 @@ | ||
package: | ||
name: consumer | ||
dependencies: | ||
- lib1 | ||
- lib2 | ||
- lib3 | ||
- lib4 | ||
workspace: | ||
packageSet: | ||
registry: 56.4.0 | ||
extraPackages: | ||
lib1: | ||
git: <library-repo-path> | ||
subdir: lib1 | ||
ref: v1 | ||
lib2: | ||
git: <library-repo-path> | ||
subdir: lib2 | ||
ref: v2 | ||
lib3: | ||
git: <library-repo-path> | ||
subdir: lib3 | ||
ref: v3 | ||
lib4: | ||
git: <library-repo-path> | ||
subdir: lib4 | ||
ref: v4 |
22 changes: 22 additions & 0 deletions
22
test-fixtures/monorepo/1208-no-double-cloning/spago-three-deps.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,22 @@ | ||
package: | ||
name: consumer | ||
dependencies: | ||
- lib1 | ||
- lib2 | ||
- lib3 | ||
workspace: | ||
packageSet: | ||
registry: 56.4.0 | ||
extraPackages: | ||
lib1: | ||
git: <library-repo-path> | ||
subdir: lib1 | ||
ref: v1 | ||
lib2: | ||
git: <library-repo-path> | ||
subdir: lib2 | ||
ref: v2 | ||
lib3: | ||
git: <library-repo-path> | ||
subdir: lib3 | ||
ref: v3 |
17 changes: 17 additions & 0 deletions
17
test-fixtures/monorepo/1208-no-double-cloning/spago-two-deps.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,17 @@ | ||
package: | ||
name: consumer | ||
dependencies: | ||
- lib1 | ||
- lib2 | ||
workspace: | ||
packageSet: | ||
registry: 56.4.0 | ||
extraPackages: | ||
lib1: | ||
git: <library-repo-path> | ||
subdir: lib1 | ||
ref: v1 | ||
lib2: | ||
git: <library-repo-path> | ||
subdir: lib2 | ||
ref: v2 |
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.