Giter Club home page Giter Club logo

aur-depends's Introduction

Hi, I'm Lu/Morganamilo, open source enthusiast who just likes making things.

I am a staff member for Arch Linux. I mostly hack on Arch things and any projects I find interesting.

  • I am a maintainer for the pacman package manager.
  • I develop the AUR helper paru, as well as contributing to other AUR helpers.
  • I maintain alpm.rs, complete, safe and ergonomic rust bindings for libalpm.
  • I also develop a handful of rust and go libraries for interacting with pacman and the AUR.

Some of my Long term goals are:

  • Apply to become a TU and package for [community]
    • Done! Now to maintain more packages
  • Spend more time hacking on pacman and tackle the many open issues.
  • Keep the AUR free from bad packages with more PKGBUILD linting in makepkg.
  • 32 bit binary builds, integration tests and localisation for paru.
    • Integration tests and localisation done!
  • Make my projects more approachable with developer aimed documentation and mentoring.
  • Blog posts explaining the ins and outs and caveats of pacman, libalpm, AUR helpers (if any one is interested).

aur-depends's People

Contributors

dodomorandi avatar jschornick avatar morganamilo avatar szabgab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aur-depends's Issues

Allow resolution of recursive deps

This issue is a feature request to bring paru closer to feature parity with yay.

The particular feature is to allow the resolution of all deps (recursively) for a package. The original/downstream issue is Morganamilo/paru#744.

Motivation and rationale is described in above linked issue.

compile error in aur-depends 1.0.3 prevents paru 1.9.2 from compiling

Affected Version

paru -V upgrading to 1.9.2 from https://crates.io/crates/paru using cargo

Description

Have you checked previous issues? I'm currently using paru v1.9.0 - libalpm v13.0.1 so that version is fine?

Output

$ cargo install paru

full cargo logs here: https://gist.github.com/jokeyrhyme/a0987cbbabd6b244d636279cdac22b67

relevant part is:

   Compiling aur-depends v1.0.3
error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/resolve.rs:309:36
    |
309 | ...                   local: local_pkg,
    |                              ^^^^^^^^^ expected struct `alpm::Package`, found struct `Pkg`

error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/resolve.rs:329:13
    |
329 |             missing,
    |             ^^^^^^^ expected struct `alpm::Package`, found struct `Pkg`
    |
    = note: expected struct `Vec<alpm::Package<'_>>`
               found struct `Vec<Pkg<'_>>`

error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/resolve.rs:371:40
    |
371 | ...                   local: local_pkg,
    |                              ^^^^^^^^^ expected struct `alpm::Package`, found struct `Pkg`

error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/resolve.rs:396:13
    |
396 |             missing,
    |             ^^^^^^^ expected struct `alpm::Package`, found struct `Pkg`
    |
    = note: expected struct `Vec<alpm::Package<'_>>`
               found struct `Vec<Pkg<'_>>`

error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/resolve.rs:468:61
    |
468 | ...                   repo_targets.push((pkg, alpm_pkg));
    |                                               ^^^^^^^^ expected struct `alpm::Package`, found struct `Pkg`

error[E0308]: mismatched types
   --> /home/ron/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-1.0.3/src/actions.rs:239:56
    |
239 |             .filter(|pkg| satisfies_repo_pkg(conflict, pkg, false))
    |                                                        ^^^ expected struct `alpm::Package`, found struct `Pkg`
    |
    = note: expected reference `&alpm::Package<'_>`
               found reference `&Pkg<'_>`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `aur-depends` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `paru v1.9.2`, intermediate artifacts can be found at `/tmp/cargo-installswHDxW`

What's weird is there is no version 1.0.3 of aur-depends, at least not at the official repository: https://github.com/Morganamilo/aur-depends/blob/master/Cargo.toml

I expect this is a bug with aur-depends itself, but I've reported it over in paru in case you think it's serious enough to change the version of aur-depends being used by paru: Morganamilo/paru#620

ICE when compiling with Rust 1.51

Hi,

Trying to update paru, I get the following ICE from this package:

Compiling aur-depends v0.13.0
error: internal compiler error: failed to process buffered lint here
   --> /home/archie/.cargo/registry/src/github.com-1ecc6299db9ec823/aur-depends-0.13.0/src/resolve.rs:842:13
    |
842 | /             debug!(
843 | |                 "cache_aur_pkgs_recursive {:?}",
844 | |                 pkgs.iter().map(|p| p.as_ref()).collect::<Vec<_>>()
845 | |             )
    | |_____________^
    |
    = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/compiler/rustc_lint/src/early.rs:384:18
    = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:974:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.51.0-nightly (04caa632d 2021-01-30) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C linker-plugin-lto --crate-type lib

note: some of the compiler flags provided by cargo are hidden

I've never hit an ICE before, so I'm not sure what the best steps are for debugging.

Hide the dbg! macro output

dbg!(&aur_targets);

Here have a dbg! macro output the &aur_targets information, but it shows in release build.

Maybe we can mark it with #[cfg(build = "debug")] or delete this line directly?

(I have a tested, delete this line not break the tests)

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.