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

Properly fix #2057 by asking tiny remapper to patch package access #2078

Closed
wants to merge 1 commit into from

Conversation

liach
Copy link
Contributor

@liach liach commented Feb 15, 2021

Needs a loom pr as well. The loom pr can properly fix the problem
in dev env.

Signed-off-by: liach liach@users.noreply.github.com

Needs a loom pr as well. The loom pr can properly fix the problem
in dev env.

Signed-off-by: liach <liach@users.noreply.github.com>
@liach
Copy link
Contributor Author

liach commented Feb 15, 2021

@Chocohead Thank you for your suggestion from #2057 (comment)

@liach liach added snapshot A PR that targets a snapshot version of Minecraft toolchain labels Feb 15, 2021
@liach liach requested a review from a team February 15, 2021 01:16
@modmuss50
Copy link
Member

No, this shouldn’t be used in loom as it will change it for mods compiling. I wouldn’t change it here either as there is no need to it will just cause added confusion between the two envs

@liach
Copy link
Contributor Author

liach commented Feb 15, 2021

then should yarn output like an access widener alongside mappings indicating members that need widening? or what approach do you suggest?

@modmuss50
Copy link
Member

I suggest we dont touch it. Mod dev envs should not have mapping specific access wideners as we would need to bake them into each mod.

Even we if fix all of the package access issues it will need to stay as it will break when an update comes along and adds a new class.

@liach
Copy link
Contributor Author

liach commented Feb 15, 2021

I suggest we dont touch it. Mod dev envs should not have mapping specific access wideners as we would need to bake them into each mod.

Even we if fix all of the package access issues it will need to stay as it will break when an update comes along and adds a new class.

so you suggest keeping the status quo, which i agree. and we leave the handling to loader exclusively?

@modmuss50
Copy link
Member

Yes.

I think mixin does complain a little in the log. I wouldn’t be against removing that log line though.

@liach
Copy link
Contributor Author

liach commented Feb 15, 2021

Hmm, should we add to tiny v2 metadata that some namespaces needs package access checks?
I mean, we can add extra metadata like \tpackage-access-checks\tfalse\ttrue etc. the values are tab split and each value indicates if each namespace may have package access issues

@liach liach added the wip label Feb 16, 2021
@liach
Copy link
Contributor Author

liach commented Feb 16, 2021

Closing in favor of FabricMC/tiny-remapper#46

@liach liach closed this Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion snapshot A PR that targets a snapshot version of Minecraft toolchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants