-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
base: main
Are you sure you want to change the base?
Conversation
Updated 6:09 PM PT - Jan 29th, 2025
❌ @nektro, your commit 0e407c5 has 1 failures in
🧪 try this PR locally: bunx bun-pr 16862 |
@@ -524,63 +524,54 @@ pub const AspectRatio = struct { | |||
}; | |||
|
|||
pub const BackgroundProperty = packed struct(u16) { | |||
@"background-color": bool = false, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
after looking through them, i suspect most can be removed without additional changes. some need to change related atomic accesses (see ziglang/zig#21585) |
depends on:
@fence
?