-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43524 from gayaldassanayake/fix-hierrarchical-pkg
Add DependencyManifest module to the PackageManifest dependency
- Loading branch information
Showing
20 changed files
with
158 additions
and
21 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
3 changes: 3 additions & 0 deletions
3
...src/test/resources/package-resolution/suite-existing_project/case-0016/Ballerina_toml.dot
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 @@ | ||
digraph "BallerinaToml" { | ||
"samjs/qux.foo:1.0.2" | ||
} |
5 changes: 5 additions & 0 deletions
5
.../test/resources/package-resolution/suite-existing_project/case-0016/Dependencies_toml.dot
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 @@ | ||
digraph "example1" { | ||
"samejs/app:0.1.0" -> "samjs/qux.foo:1.0.2" | ||
|
||
"samjs/qux.foo:1.0.2" [modules = "qux.foo"] | ||
} |
3 changes: 3 additions & 0 deletions
3
...erina-lang/src/test/resources/package-resolution/suite-existing_project/case-0016/app.dot
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 @@ | ||
digraph "samejs/app:0.1.0" { | ||
"samjs/qux.foo" | ||
} |
13 changes: 13 additions & 0 deletions
13
...sources/package-resolution/suite-existing_project/case-0016/case-description.md
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 @@ | ||
# Package name is hierarchical, there are new versions in the central, and the older version is specified in Ballerina.toml and Dependencies.toml | ||
|
||
1. User's package has `samjs/qux.foo:1.0.2` as a dependency in Dependencies.toml. | ||
2. A newer version `samjs/qux.foo:1.0.5` has been released to central. | ||
3. User specifies `samjs/qux.foo:1.0.2` in Ballerina.toml | ||
4. User now builds the package | ||
|
||
## Expected behavior | ||
|
||
### Sticky == true | ||
No changes to Dependency graph | ||
### Sticky == false | ||
Dependency graph should be updated to have `samjs/qux.foo:1.0.5` |
3 changes: 3 additions & 0 deletions
3
...resources/package-resolution/suite-existing_project/case-0016/expected-graph-nosticky.dot
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 @@ | ||
digraph "example1" { | ||
"samejs/app:0.1.0" -> "samjs/qux.foo:1.0.5" | ||
} |
3 changes: 3 additions & 0 deletions
3
...t/resources/package-resolution/suite-existing_project/case-0016/expected-graph-sticky.dot
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 @@ | ||
digraph "example1" { | ||
"samejs/app:0.1.0" -> "samjs/qux.foo:1.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
9 changes: 9 additions & 0 deletions
9
...roject-api-test/src/test/resources/projects_for_resolution_tests/package_z/Ballerina.toml
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 @@ | ||
[package] | ||
org = "samjs" | ||
name = "package_z" | ||
version = "0.1.0" | ||
|
||
[[dependency]] | ||
org = "samjs" | ||
name = "foo.bar" | ||
version = "1.0.0" |
28 changes: 28 additions & 0 deletions
28
...est/src/test/resources/projects_for_resolution_tests/package_z/Dependencies-template.toml
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,28 @@ | ||
# AUTO-GENERATED FILE. DO NOT MODIFY. | ||
|
||
# This file is auto-generated by Ballerina for managing dependency versions. | ||
# It should not be modified by hand. | ||
|
||
[ballerina] | ||
dependencies-toml-version = "2" | ||
distribution-version = "**INSERT_DISTRIBUTION_VERSION_HERE**" | ||
|
||
[[package]] | ||
org = "samjs" | ||
name = "foo.bar" | ||
version = "1.0.0" | ||
modules = [ | ||
{org = "samjs", packageName = "foo.bar", moduleName = "foo.bar"} | ||
] | ||
|
||
[[package]] | ||
org = "samjs" | ||
name = "package_z" | ||
version = "0.1.0" | ||
dependencies = [ | ||
{org = "samjs", name = "foo.bar"} | ||
] | ||
modules = [ | ||
{org = "samjs", packageName = "package_z", moduleName = "package_z"} | ||
] | ||
|
4 changes: 4 additions & 0 deletions
4
...-api/project-api-test/src/test/resources/projects_for_resolution_tests/package_z/main.bal
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 @@ | ||
import samjs/foo.bar as _; | ||
|
||
public function func_z() { | ||
} |
4 changes: 4 additions & 0 deletions
4
...api-test/src/test/resources/projects_for_resolution_tests/package_zz_1_0_0/Ballerina.toml
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] | ||
org = "samjs" | ||
name = "foo.bar" | ||
version = "1.0.0" |
2 changes: 2 additions & 0 deletions
2
...oject-api-test/src/test/resources/projects_for_resolution_tests/package_zz_1_0_0/main.bal
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 @@ | ||
public function func() { | ||
} |
4 changes: 4 additions & 0 deletions
4
...api-test/src/test/resources/projects_for_resolution_tests/package_zz_1_0_2/Ballerina.toml
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] | ||
org = "samjs" | ||
name = "foo.bar" | ||
version = "1.0.2" |
2 changes: 2 additions & 0 deletions
2
...oject-api-test/src/test/resources/projects_for_resolution_tests/package_zz_1_0_2/main.bal
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 @@ | ||
public function func() { | ||
} |
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