Skip to content
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

fix broken and confusing artifact installation logic #15245

Merged
merged 5 commits into from
Apr 11, 2023

Conversation

andrewrk
Copy link
Member

See individual commit messages for more information.

closes #15079

@andrewrk andrewrk added breaking Implementing this issue could cause existing code to no longer compile or have different behavior. zig build system std.Build, the build runner, `zig build` subcommand, package management labels Apr 11, 2023
@andrewrk andrewrk force-pushed the zig-build-install-artifact branch from 4849ee3 to 677e1c9 Compare April 11, 2023 00:10
The destination *Build object is already known to be step.owner, while
the source object is artifact.step.owner.
This was used to ensure that an artifact would only be installed once,
but this is not only unnecessary, but actively harmful, in the face of
dependencies.

see #15079
These functions are problematic in light of dependencies because they
run and install, respectively, for the *owner* package rather than for
the *user* package. By removing these functions, the build script is
forced to provide the *Build object to associate the new step with,
making everything less surprising.

Unfortunately, this is a widely breaking change.

see #15079
Instead, ignore stdin. Otherwise this interfers with a sub-process which
expects to have a stdin file descriptor open.
And while we're at it, make the unit tests be actually executed.
@andrewrk andrewrk force-pushed the zig-build-install-artifact branch from 677e1c9 to 406706f Compare April 11, 2023 01:35
@andrewrk andrewrk merged commit 1728d92 into master Apr 11, 2023
@andrewrk andrewrk deleted the zig-build-install-artifact branch April 11, 2023 15:40
zshipko pushed a commit to extism/extism that referenced this pull request Apr 14, 2023
Fixes breaking build system changes introduced in ziglang/zig#15245
bhelx pushed a commit to extism/zig-sdk that referenced this pull request Sep 13, 2023
Fixes breaking build system changes introduced in ziglang/zig#15245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Implementing this issue could cause existing code to no longer compile or have different behavior. zig build system std.Build, the build runner, `zig build` subcommand, package management
Projects
None yet
1 participant