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 generateDiff task when target version doesn't exist #671

Open
wants to merge 4 commits into
base: 25w02a
Choose a base branch
from

Conversation

supersaiyansubtlety
Copy link
Member

@supersaiyansubtlety supersaiyansubtlety commented Dec 3, 2024

Note: this only affects the diff task, which is not currently used in the generate-diff action (which works fine since #670).

  • renames task generateDiff -> diffTarget
  • makes diffTarget a TargetVersionConsumingTask so it gets skipped if the target version doesn't exist
  • adds lazilyDiffTarget as a hack to prevent unnecessarily generating sources using local mappings when the target version isn't present

@supersaiyansubtlety supersaiyansubtlety added bug something isn't working correctly t: toolchain changes to the quilt mappings toolchain reviews needed please review this PR s: tiny PRs with less than 50 lines labels Dec 3, 2024
@supersaiyansubtlety supersaiyansubtlety self-assigned this Dec 3, 2024
@supersaiyansubtlety supersaiyansubtlety added the update-base used to notify github actions that the base branch should be updated label Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

🚀 Target branch has been updated to 1.21.4

@github-actions github-actions bot changed the base branch from 1.21.4-rc3 to 1.21.4 December 4, 2024 00:35
@github-actions github-actions bot removed the update-base used to notify github actions that the base branch should be updated label Dec 4, 2024
@supersaiyansubtlety supersaiyansubtlety added the wip this is a work in progress label Dec 5, 2024
…kVersionsMatchConsumingTask as they depend on other UnpickVersionsMatchConsumingTasks

give lazilyDiffTarget a custom type that implements UnpickVersionsMatchConsumingTask
make lazilyDiffTarget's conditional dependency use a provider to make it lazier
use try-with-resources when writing the output in DiffDirectoriesTask
@supersaiyansubtlety supersaiyansubtlety removed the wip this is a work in progress label Dec 5, 2024
@ix0rai ix0rai added the update-base used to notify github actions that the base branch should be updated label Jan 15, 2025
@github-actions github-actions bot changed the base branch from 1.21.4 to 25w02a January 15, 2025 23:19
Copy link
Contributor

🚀 Target branch has been updated to 25w02a

@github-actions github-actions bot added v: snapshot targets a snapshot version of minecraft and removed update-base used to notify github actions that the base branch should be updated labels Jan 15, 2025
@supersaiyansubtlety supersaiyansubtlety added final-comment-period is approved and will soon be merged if no issues are raised and removed reviews needed please review this PR labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working correctly final-comment-period is approved and will soon be merged if no issues are raised s: tiny PRs with less than 50 lines t: toolchain changes to the quilt mappings toolchain v: snapshot targets a snapshot version of minecraft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants