Skip to content

actonc to gen build.zig(.zon) and build deps#2550

Merged
plajjan merged 2 commits into
mainfrom
actonc-build-zig
Dec 7, 2025
Merged

actonc to gen build.zig(.zon) and build deps#2550
plajjan merged 2 commits into
mainfrom
actonc-build-zig

Conversation

@plajjan

@plajjan plajjan commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

actonc can now understand the build specification read from Build.act / build.act.json and render proper build.zig(.zon) files from this so that a acton build completes in a project with dependencies on other projects. Deps are first normalized through a transitive deps discovery and paths are rewritten as relative going up via the root, just like acton CLI does it. In addition, actonc will also collect transitive dependencies recursively.

actonc build will also build dependencies by invoking itself for each dependency.

Kristian Larsson added 2 commits December 7, 2025 10:14
actonc can now understand the build specification read from Build.act /
build.act.json and render proper build.zig(.zon) files from this so that
a `acton build` completes in a project with dependencies on other
projects. Deps are first normalized through a transitive deps discovery
and paths are rewritten as relative going up via the root, just like
acton CLI does it. In addition, actonc will also collect transitive
dependencies recursively.

Note how dependencies are not built though - only `acton build` runs
that, but once that is taken care of (any no further changes are made)
then it is possible to just run `actonc build` to build the local project.
actonc can now build project dependencies by invoking itself recursively
for all dependencies.
@plajjan plajjan changed the title actonc to gen build.zig(.zon) with proper deps actonc to gen build.zig(.zon) and build deps Dec 7, 2025
@plajjan plajjan merged commit ed78fab into main Dec 7, 2025
36 of 37 checks passed
@plajjan plajjan deleted the actonc-build-zig branch December 7, 2025 21:01
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.

1 participant