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

Spec proposal for opt-in feature where PrivateAssets flag option indepdent from IncludeAssets/ExcludeAssets options #12313

Closed

Conversation

erdembayar
Copy link
Contributor

@erdembayar erdembayar commented Dec 7, 2022

Related to: #6938

Description

Currently Include/Exclude flag completely eclipses PrivateAssets flag when generating nupkg package in many cases. So, it doesn't let package dependencies flow to parent projects of consuming project. Here's a spec proposal for how to address with new opt-in feature property.
Rendered

@erdembayar erdembayar requested a review from a team as a code owner December 7, 2022 23:24
@erdembayar erdembayar marked this pull request as draft December 7, 2022 23:25
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch 6 times, most recently from 8113dea to 1217510 Compare December 7, 2022 23:52
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from 1217510 to 0864d28 Compare December 7, 2022 23:54
@erdembayar erdembayar marked this pull request as ready for review December 7, 2022 23:55
@erdembayar
Copy link
Contributor Author

erdembayar commented Dec 8, 2022

Fyi @AArnott
Please review.

Copy link
Contributor

@AArnott AArnott 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 this.

proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch 3 times, most recently from 3cf6007 to 41db842 Compare December 9, 2022 02:41
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from 41db842 to d231ef3 Compare December 9, 2022 02:44
@erdembayar erdembayar marked this pull request as draft February 1, 2023 19:42
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from 8aa4878 to 72bcb2c Compare April 3, 2023 23:59
@nkolev92 nkolev92 dismissed their stale review April 5, 2023 18:34

Proposal has changed a lot.

proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
@erdembayar erdembayar marked this pull request as ready for review April 7, 2023 18:50
Copy link
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

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

The proposal seems reasonable to me.

I do think that the proposal itself is still really difficult to read and pretty lengthy, so I left a bunch of feedback on that.

  • I tried to call out as many of the difficulties I had going through the spec. I think it could be a lot shorter and communicate the same ideas.
  • A lot of my comments apply to spec writing overall, so hopefully you find that helpful. Providing the right amount of detail requires going through the same design many times and often, re-reading the same text over and over, it just blurs, so it can be super easy to end up with lots of redundancies. The fact that it's been a while since I last read the spec is probably what allowed me to provide a lot of this feedback.

proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\refissue\refissue.csproj" PrivateAssets="none" ExcludedAssetsFlow="true"/>
Copy link
Member

Choose a reason for hiding this comment

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

I think you've already communicated that they're independent. Adding length examples is probably best done in something shorter than a paragraph or a complete section.

I had to look hard at the examples to understand them, but in reality, they're really really close together.

If you say PrivateAssets and IncludeAssets are independent once, you don't need an example with different values of IncludeAssets, you just one where PrivateAssets and IncludeAssets conflict.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the missing scenarios you mentioned in your previous review comments, so I added 2 more in this part of the spec. #12313 (comment)

proposed/2022/PrivateAssetIndepdentFromExcludeAsset.md Outdated Show resolved Hide resolved
erdembayar and others added 2 commits April 10, 2023 12:07
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from 30d1a77 to 0f4b052 Compare April 10, 2023 20:09
erdembayar and others added 2 commits April 10, 2023 13:12
Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com>
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from ddd279f to 6ac4464 Compare April 10, 2023 20:22
@erdembayar erdembayar force-pushed the dev-eryondon-privateasset-vs-includeexclude-asset branch from 6ac4464 to 1af7f27 Compare April 10, 2023 20:23
@ghost ghost added the Status:No recent activity No recent activity. label May 10, 2023
@ghost ghost closed this May 26, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:No recent activity No recent activity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants