Code Monkey home page Code Monkey logo

zpm's People

Contributors

masterq32 avatar sno2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zpm's Issues

parser.next's argument is not required

I got this error when I used 'zig build'. I think that this error is caused by zig-lang's version.

  • NixOS
  • zig-version: 0.10.1

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!!

only GitHub?

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.

Doesn't build with zig 0.6.0

..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:                                                                
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.