Skip to content
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

Fix topological sort to take into account defaultProvider. #643

Merged
merged 0 commits into from
Sep 25, 2024

Conversation

brandonpollack23
Copy link
Contributor

@brandonpollack23 brandonpollack23 commented Sep 24, 2024

The topological sort will not sort default providers first as is, so
this adds in a check to detect it and not allow implicit providers to be
complete until the default provider is declared.


@brandonpollack23 brandonpollack23 requested a review from a team as a code owner September 24, 2024 06:24
@brandonpollack23 brandonpollack23 force-pushed the brandonpollack23/f91181f4 branch 3 times, most recently from 485f11b to c507f97 Compare September 24, 2024 06:33
@brandonpollack23
Copy link
Contributor Author

Bug: #604

pkg/tests/integration_test.go Outdated Show resolved Hide resolved
pkg/pulumiyaml/sort.go Outdated Show resolved Hide resolved
pkg/tests/testdata/resource-ordering/Pulumi.yaml Outdated Show resolved Hide resolved
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
@brandonpollack23 brandonpollack23 changed the base branch from main to brandonpollack23/30597e61 September 25, 2024 05:47
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
@brandonpollack23 brandonpollack23 force-pushed the brandonpollack23/f91181f4 branch 2 times, most recently from f8ba240 to e882e43 Compare September 25, 2024 06:05
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
@brandonpollack23 brandonpollack23 merged commit 7abd4bf into brandonpollack23/30597e61 Sep 25, 2024
@brandonpollack23 brandonpollack23 deleted the brandonpollack23/f91181f4 branch September 25, 2024 06:22
@brandonpollack23 brandonpollack23 restored the brandonpollack23/f91181f4 branch September 25, 2024 06:22
@brandonpollack23 brandonpollack23 deleted the brandonpollack23/f91181f4 branch September 25, 2024 06:31
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 25, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
brandonpollack23 added a commit that referenced this pull request Sep 27, 2024
Also added a test to test topological sort works correctly.

       Bug: #643
Remote-Ref: brandonpollack23/e8219876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants