Repository navigation
feat(rules): Zig .zig-cache and zig-out - #19
Merged
Merged
Conversation
A Zig project (build.zig in the folder) writes two folders on every
`zig build`: the local cache .zig-cache and the install prefix zig-out
("There are two generated directories in this output: `.zig-cache` and
`zig-out`", https://ziglang.org/learn/build-system/). Zig 0.12 and older
named the cache zig-cache, so that name is offered too. All three are
Safe: the next zig build recreates them with no download.
Adds zig.toml to BUNDLED, match fixtures for both cache names, a
nomatch fixture without build.zig, and the README table row. The
rules-check snapshot counts 13 files and 37 artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a rule for Zig projects (
build.zigin the folder):.zig-cachezig buildzig-cache(Zig 0.12 and older)zig buildzig-outzig buildSource: https://ziglang.org/learn/build-system/ ("There are two generated directories in this output:
.zig-cacheandzig-out";zig-outis the "installation prefix").Adds
zig.tomltoBUNDLED, match fixtures for both cache names, a nomatch fixture withoutbuild.zig, and the README table row.Closes #18
How tested
rule_fixtures_produce_the_expected_candidatescovers the new fixtures;plan --rules engine/ruleson a copy of the match fixture lists.zig-cacheandzig-outas Safe.cargo test --locked148 passed, rules-check 13 rule files, 37 artifacts: ok (snapshot updated).Note: this and the Haskell rule PR both add a line to
BUNDLED, the README table and the rules-check snapshot, so whichever merges second needs a small rebase.