zigtools / zpm Goto Github PK
View Code? Open in Web Editor NEWZig package manager helper
Zig package manager helper
https://github.com/topics/zig-package
Maybe add a link to zpm
I got this error when I used 'zig build'. I think that this error is caused by zig-lang's version.
The Error is below;
/home/haruki/program-dir/zpm/src/main.zig:34:37: error: member function expected 0 argument(s), found 1
const exe_name = try (parser.next(global_allocator) orelse return 1);
~~~~~~^~~~~
/nix/store/hascmdzfs9p4xvx4pzcdv36xybwy0cff-zig-0.10.1/lib/zig/std/process.zig:777:9: note: function declared here
pub fn next(self: *ArgIterator) ?([:0]const u8) {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
callMain: /nix/store/hascmdzfs9p4xvx4pzcdv36xybwy0cff-zig-0.10.1/lib/zig/std/start.zig:614:32
initEventLoopAndCallMain: /nix/store/hascmdzfs9p4xvx4pzcdv36xybwy0cff-zig-0.10.1/lib/zig/std/start.zig:548:51
remaining reference traces hidden; use '-freference-trace' to see all reference traces
error: zpm...
error: The following command exited with error code 1:
/nix/store/hascmdzfs9p4xvx4pzcdv36xybwy0cff-zig-0.10.1/bin/zig build-exe /home/haruki/program-dir/zpm/src/main.zig --cache-dir /home/haruki/program-dir/zpm/zig-cache --global-cache-dir /home/haruki/.cache/zig --name zpm --pkg-begin args /home/haruki/program-dir/zpm/lib/zig-args/args.zig --pkg-end --pkg-begin uri /home/haruki/program-dir/zpm/lib/zig-uri/uri.zig --pkg-end --pkg-begin ini /home/haruki/program-dir/zpm/lib/ini/src/ini.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
/home/haruki/program-dir/zpm/zig-cache/o/4700338cbf518f7843a7515681e3f2ad/build /nix/store/hascmdzfs9p4xvx4pzcdv36xybwy0cff-zig-0.10.1/bin/zig /home/haruki/program-dir/zpm /home/haruki/program-dir/zpm/zig-cache /home/haruki/.cache/zig
I was newbie of zig-lang, so I want you to tell me where I missed point!!
Enforced Semantic Versioning
Elm can detect all API changes automatically thanks to its type system. We use that information to guarantee that every single Elm package follows semantic versioning precisely. No surprises in PATCH releases.
There are other Git hosting possibilities than GitHub and some people may have reasons to not want or not be able to use GitHub. Other websites include GitLab, sr.ht, as well as private hosting (incl. e.g. on a Raspberry Pi). Now, it looks like zpm is only limited to GitHub? If yes, it would be good if it was extended to also support other hosting servers, for example by allowing full HTTP/HTTPS URL for fetching a repository from non-GitHub.
..and I can't find anything saying what version it should build against. Or is it now considered totally obsolete?
The first few lines of the results of 'zig build' on ubuntu 20.04 are:
$ zig build
Semantic Analysis [1042/1665] ./src/main.zig:594:8: error: no member named 'cwd_dir' in struct 'std.child_process.ChildProcess'
git.cwd_dir = target_dir;
^
./src/main.zig:556:13: note: referenced here
try runGit(&[_][]const u8{
^
./src/main.zig:509:76: note: referenced here
installPackageInternal(allocator, target_dir, full_name, install_mode) catch |err| switch (err) {
^
./src/main.zig:237:43: note: referenced here
success = success and try installPackage(allocator, target_dir, repo_spec, cli.options.mode);
^
zpm...The following command exited with error code 1:
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.