Skip to content

flatten analysis test build steps into build.zig - #3287

Merged
techatrix merged 2 commits into
zigtools:masterfrom
iceghost:push-rkwnovsllrpo
Oct 17, 2026
Merged

techatrix merged 2 commits into
zigtools:masterfrom
iceghost:push-rkwnovsllrpo

Conversation

@iceghost

Copy link
Copy Markdown
Contributor

92d5bbf removed tests/ from build.zig.zon, but add_analysis_cases.zig is imported with @import() in build.zig, causing configure error:

error: adding build_root zig-pkg/zls-0.17.0-dev-rmm5fgEnHAB2MTEid91hbT8mVqvuEYQvtOXQDfX7lqN2/tests/add_analysis_cases.zig to cache failed: FileSystemFailure

Flatten the file into build.zig directly, since all the paths used in that file are all relative to build.zig anyway and I see little benefit in extracting it in its own file.

Fixes: 92d5bbf (exclude unnecessary build steps and files when being a dependency)

92d5bbf removed tests/ from build.zig.zon, but add_analysis_cases.zig is
imported with @import() in build.zig, causing configure error:

```
error: adding build_root zig-pkg/zls-0.17.0-dev-rmm5fgEnHAB2MTEid91hbT8mVqvuEYQvtOXQDfX7lqN2/tests/add_analysis_cases.zig to cache failed: FileSystemFailure
```

Flatten the file into build.zig directly, since all the paths used
in that file are all relative to build.zig anyway and I see little
benefit in extracting it in its own file.

Fixes: 92d5bbf (exclude unnecessary build steps and files when being a dependency)
@iceghost iceghost changed the title flatten analysis build steps into build.zig flatten analysis test build steps into build.zig Oct 17, 2026

@techatrix techatrix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the function above the definition of Build but otherwise looks good to me. Thanks and sorry for the breakage

@techatrix
techatrix merged commit 495b4e9 into zigtools:master Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants