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 assemblies only being publicized if a Type has been publicized #65

Merged
merged 2 commits into from
Jan 25, 2023

Conversation

krafs
Copy link
Owner

@krafs krafs commented Jan 25, 2023

An assembly is currently marked as publicized only if one of its Types changes from non-public to public. In the case of publicizing e.g. a private field in a Type that is already public makes the task resolve the Type as unmodified, and if that field is the only publicized member in the assembly the entire assembly resolves as unmodified.

This fix makes it so that any member being publicized marks the assembly as modified and saved to disk.

krafs added 2 commits January 24, 2023 21:53
An assembly is currently marked as publicized only if one of its Types changes from non-public to public. This means that specificly publicizing e.g. a non-public field in an already-public Type isn't marked as a modified assembly, in which case no publicized assembly is saved to disk.
This fix makes it so that any member being publicized marks the assembly as modified and saved to disk.
@krafs krafs added the bug Something isn't working label Jan 25, 2023
@krafs krafs self-assigned this Jan 25, 2023
@krafs krafs linked an issue Jan 25, 2023 that may be closed by this pull request
@krafs krafs merged commit 7bff302 into main Jan 25, 2023
@krafs krafs deleted the bug/no-publicize-without-type branch January 25, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assembly isn't publicized unless a type is publicized
1 participant