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

zig: update to 0.14.0-dev [wip] #16862

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

zig: update to 0.14.0-dev [wip] #16862

wants to merge 11 commits into from

Conversation

nektro
Copy link
Member

@nektro nektro commented Jan 29, 2025

@robobun
Copy link

robobun commented Jan 29, 2025

Updated 6:09 PM PT - Jan 29th, 2025

@nektro, your commit 0e407c5 has 1 failures in Build #10804:


🧪   try this PR locally:

bunx bun-pr 16862

@nektro nektro changed the title zig: update to 0.14.0-dev.2851+b074fb7dd zig: update to 0.14.0-dev.2851+b074fb7dd [wip] Jan 29, 2025
@@ -524,63 +524,54 @@ pub const AspectRatio = struct {
};

pub const BackgroundProperty = packed struct(u16) {
@"background-color": bool = false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's clearer to keep it as the exact CSS property name. Instead of having to mentally ask "is it background-color or is it color?

@@ -568,79 +568,79 @@ const BorderShorthand = struct {
};

const BorderProperty = packed struct(u32) {
@"border-top-color": bool = false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here as well

@@ -1385,14 +1381,14 @@ pub fn NewPackageInstall(comptime kind: PkgInstallKind) type {
Method.hardlink;

fn installWithClonefileEachDir(this: *@This(), destination_dir: std.fs.Dir) !Result {
var cached_package_dir = bun.openDir(this.cache_dir, this.cache_dir_subpath) catch |err| return Result.fail(err, .opening_cache_dir, @errorReturnTrace());
var cached_package_dir = bun.openDir(this.cache_dir, this.cache_dir_subpath) catch |err| return Result.initFail(err, .opening_cache_dir, @errorReturnTrace());
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can't keep it as init? It's clearer imo

@@ -493,7 +493,7 @@ pub const StreamStart = union(Tag) {
close: bool = false,
mode: bun.Mode = 0o664,

pub fn flags(this: *const FileSinkOptions) bun.Mode {
pub fn flags(this: *const FileSinkOptions) c_int {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can this be i32 at least

src/bun.zig Outdated Show resolved Hide resolved
@nektro nektro changed the title zig: update to 0.14.0-dev.2851+b074fb7dd [wip] zig: update to 0.14.0-dev [wip] Jan 29, 2025
@paperclover
Copy link
Member

what is the upgrade path for @fence?

after looking through them, i suspect most can be removed without additional changes. some need to change related atomic accesses (see ziglang/zig#21585)

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.

4 participants