Skip to content

Include removed dependency flag when creating a pull request#5671

Merged
mctofu merged 3 commits intomainfrom
mctofu/removed-dependency-api
Sep 9, 2022
Merged

Include removed dependency flag when creating a pull request#5671
mctofu merged 3 commits intomainfrom
mctofu/removed-dependency-api

Conversation

@mctofu
Copy link
Copy Markdown
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.
end
end

context "with a removed dependency" do
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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