zig-protobuf icon indicating copy to clipboard operation
zig-protobuf copied to clipboard

build error with zig 0.10.0

Open calvin2021y opened this issue 3 years ago • 4 comments

./build.zig:24:13: error: no member named 'path' in struct 'std.build.Pkg' .path = std.build.FileSource{.path = "src/protobuf.zig"}

calvin2021y avatar Jul 13 '22 06:07 calvin2021y

Will try to update to zig 0.10 tonight.

Arwalk avatar Jul 13 '22 06:07 Arwalk

@calvin2021y zig 0.10.0 has not been released yet AFAIK. I'd prefer to upgrade to a stable version when it is released.

If you have an actual use case for the library that requires zig 0.10.0-dev and want to tinker with it, i can make an exception though. I can't refuse some feedback :)

Would you like me to upgrade it?

Arwalk avatar Jul 13 '22 12:07 Arwalk

Thanks for the kind response, it will be great to upgrade for 0.10.0. (I guess we need upgrade soon or late.)

calvin2021y avatar Jul 15 '22 12:07 calvin2021y

Well, once again, i'd have prefered to wait for a 0.10 official release. I will get the latest dev version and will precise the revision in the readme while upgrading.

Arwalk avatar Jul 15 '22 14:07 Arwalk

@calvin2021y the branch update_to_0.10 is compatible with the stage1 compiler of 0.10.0. Sadly i can't seem to make it work with the stage 2 compiler: my abuse of comptime doesn't seem to work there.

I might have to rethink a bit about how to redo most of my code if my assumptions about comptime aren't possible anymore. Welp.

Arwalk avatar Dec 11 '22 15:12 Arwalk

solved by #16

Arwalk avatar Jun 09 '23 15:06 Arwalk