Skip to content

Adding "devDependencies" support for nuget projects.#4671

Merged
feelepxyz merged 5 commits intodependabot:mainfrom
pangaeatech:pangaeatech/nuget-devSupport
Jan 27, 2022
Merged

Adding "devDependencies" support for nuget projects.#4671
feelepxyz merged 5 commits intodependabot:mainfrom
pangaeatech:pangaeatech/nuget-devSupport

Conversation

@mwaddell
Copy link
Copy Markdown
Contributor

- Addresses issue #4659
- Supports `ItemGroup > DevelopmentDependency` groups in `.csproj` files
- Supports `developmentDependency="true"` in `packages.config`
- Does **not** support development dependencies specified using the `Condition=` property in `<Import />`, etc.
@mwaddell mwaddell requested a review from a team as a code owner January 26, 2022 16:24
Comment on lines +48 to +56
doc.css(DEV_SELECTOR).each do |dependency_node|
name = dependency_name(dependency_node, project_file)
req = dependency_requirement(dependency_node, project_file)
version = dependency_version(dependency_node, project_file)
prop_name = req_property_name(dependency_node)

dependency = build_dependency(name, req, version, prop_name, project_file, true)
dependency_set << dependency if dependency
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this be folded into the existing dependency selector and checking the dependency_node to see if it's a dev dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yep, I just pushed that change for your review.

Co-authored-by: Philip Harrison <philip@mailharrison.com>
Copy link
Copy Markdown
Contributor

@feelepxyz feelepxyz left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this and going through all the specs! I've done a quick pass and looks good overall, wondering if the added doc.css(DEV_SELECTOR).each is needed or could be folder into the existing doc.css(DEV_SELECTOR).each?

@mwaddell
Copy link
Copy Markdown
Contributor Author

Thanks for tackling this and going through all the specs! I've done a quick pass and looks good overall, wondering if the added doc.css(DEV_SELECTOR).each is needed or could be folder into the existing doc.css(DEV_SELECTOR).each?

You're welcome. Yes, it can - I just pushed that change for your review.

Copy link
Copy Markdown
Contributor

@feelepxyz feelepxyz left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for incorporating the feedback 👍

@feelepxyz feelepxyz merged commit 5a421b1 into dependabot:main Jan 27, 2022
@mwaddell mwaddell deleted the pangaeatech/nuget-devSupport branch January 27, 2022 16:19
@feelepxyz feelepxyz mentioned this pull request Jan 27, 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.

2 participants