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

Include removed dependency flag when creating a pull request #5671

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

mctofu
Copy link
Contributor

@mctofu mctofu commented Sep 9, 2022

This is required to support removed transitive dependencies.

@mctofu mctofu requested a review from a team as a code owner September 9, 2022 18:53
Eliminates the need to update all the existing smoke test
expectations.
@@ -101,6 +101,34 @@
end)
end
end

context "with a removed dependency" do
Copy link
Member

@Nishnha Nishnha Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if somehow we pass in removed: false instead of nil?

Copy link
Contributor Author

@mctofu mctofu Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It defaults to false so should be the same:

def initialize(name:, requirements:, package_manager:, version: nil,
previous_version: nil, previous_requirements: nil,
subdependency_metadata: [], removed: false)

Copy link
Member

@Nishnha Nishnha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mctofu mctofu merged commit de4103b into main Sep 9, 2022
@mctofu mctofu deleted the mctofu/removed-dependency-api branch September 9, 2022 21:10
@pavera pavera mentioned this pull request Oct 31, 2022
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.

3 participants