-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
all: nominate Zig 2024.1.0-mach #1135
Comments
First-order dependencies are almost finished, awesome! Remaining blockers:
Additionally, let's try eliminating direct3d-headers in favor of directx-headers during this update process. |
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Tips for updating code to Zig 2024.1.0-machRenamed:
Error resolutions:
|
See tips on updating your own code here: hexops/mach#1135 (comment) Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Helps hexops/mach#1135 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
That feature has been removed from autofix in zigtools/zls#1652 so it is only an ordinary code action. |
gnused, bash alternative if [[ ! -d "$1" ]]; then
printf 'error: no such directory: %s\n' "$1"
exit 1
fi
cd "$1"
has_wontfix=0
while {
IFS=$':' read -r file line col msg;
} do
if [[ "$msg" ]]; then
case "$msg" in
*"local variable is never mutated")
printf 'autofix: %s\n' "$file:$line:$col:$msg" 1>&2
sed -i "''${line}s/var/const/" "$file"
;;
*)
printf 'wontfix: %s\n' "$file:$line:$col:$msg" 1>&2
has_wontfix=1
;;
esac
fi
done < <(zig build 2>&1 | grep "error:")
exit $has_wontfix |
Super useful!! A couple extra things I had to do when updating Tides (from a pretty old Zig build):
Actually not sure if this one is correct but I guess so?
|
Periodically we nominate a new Zig nightly version to be the version that Mach targets, and begin the meticulous process of updating every Mach project to use that new version.
This is the tracking issue to do that for the next scheduled nomination (see the date in the issue title.)
You may have been linked to this issue because you sent a pull request to update a Mach project to use a new Zig API - if that is the case we do appreciate the PR and will look at merging it once this process begins. In the meantime, your PR may stay open for a while. You can either use a fork of the project, or use the version of Zig that Mach currently supports.
Update process
machengine.org
repositorystatic/zig
folder,wrench script nominate-zig-index-update nominate 2024.1.0-mach-wip
has been ran and theindex.json
has been updated.!wrench schedule-now update-zig-version
) has created new pull requests to update the Zig version used in CI of all our projects, and it matches index.json.**IN-PROGRESS:** This version is currently being nominated, see [the tracking issue](https://github.com/hexops/mach/issues/1135) for details. Once everything looks good, the new Zig version is confirmed to be working with Mach, we will declare success, close the issue, and remove this in-progress warning.
.Beginning the process of nominating a new Zig version! (you should wait to upgrade until we've updated everything to confirm it works) $GITHUB_ISSUE
!wrench script-all install-zig
) has updated the Zig version used by self-hosted GitHub actions runners. TODO this needs some work..zigversion
file https://github.com/hexops/mach/blob/main/.zigversion has been updated.machengine.org
repositorystatic/zig
folder,wrench script nominate-zig-index-update finalize 2024.1.0-mach-wip
has been ran and theindex.json
has had-wip
removed and themach-latest
entry has been updated.**IN-PROGRESS**
warning in the Nomination history has been removed.First-order projects
These projects have zero
build.zig.zon
dependencies, we update them first - and in any order.Second-order projects
These projects have dependencies on other projects. We update them in the exact order below, top-to-bottom.
The text was updated successfully, but these errors were encountered: