Builder: the ready page names both places when the build files are in a folder the player chose (rest of #623) #1079
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1079
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/builder-ready-page-both-places"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #600, #623.
This is what's left of #623, rebased on current main as asked there. #623 itself couldn't be reopened. The rest of #623 is already on main through
f39868eand the later space changes (55abe59), so this PR holds only the one change main doesn't have:Storage.WorkChosen), the text now names both places.Storage.Measure()adds the chosen work folder to the total, but the text only namedStorage.Base, so it understated where the space is. Telling the player where the space goes is what #600 asked for.The change is five lines in
MainWindow.xaml.cs. I have no dotnet here, so the Windows CI job ("Hookshot Builder package and setup") is what compiles it.With
55abe59the build files are deleted after a build unlessHOOKSHOT_KEEP_BUILD_FILES=1, so the "can be freed" part of that text mostly appears with that setting. The total still counts the chosen folder either way.The red "Python source checks" is
tests/test_program_answer_domains.py, which fails the same way on main at8b2e1d3(run 42588468881). This PR only changesbuilder/HookshotBuilder/MainWindow.xaml.cs. The job that compiles it, "Hookshot Builder package and setup", passes.Looks good. Storage.WorkChosen already goes through Same(), so the equal-path case keeps the old text, and the hunks still line up with main's MainWindow.xaml.cs. Builder package/setup job passes, so it compiles. The red Python source checks fail in tests/test_program_answer_domains.py (undeclared answers_in in the fixture), nothing to do with this change.
@ -956,2 +956,4 @@var (total, freeable) = await Task.Run(Storage.Measure);if (total < 100L << 20) return;// (both places when the build files are in a folder the player chose: the total counts both)var where = Storage.WorkChosen ? $"{Storage.Base} and {Storage.Work}" : Storage.Base;Nit, not blocking:
whereis built from the Storage.Base and Storage.Work strings and now has two paths in a sentence, which reads a bit long on a narrow ready page. Fine as is.