Giter Site home page Giter Site logo

Comments (8)

zsinskri avatar zsinskri commented on August 26, 2024

I just realised firefox-kde-opensuse with rust/rustup was a really bad example as it also depends directly on rust.
But arch-audit-git shows the same behaviour and only depends on cargo, not rust.

from pikaur.

ixjlyons avatar ixjlyons commented on August 26, 2024

This happens because the --noconfirm flag is used in the command constructed here when installing repo dependencies. You can demonstrate (assuming you don't have rust or rustup installed) by comparing:

$ sudo pacman -S --noconfirm cargo
... automatically starts downloading and installing the rust package

to

$ sudo pacman -S cargo
... prompts which package to install as expected

I'm guessing it's there to minimize user interactions/confirmations. Having an additional confirmation prompt for repo dependency installation (i.e. just removing the --noconfirm flag here) would be fine to me as a pikaur user. I think I would actually prefer that behavior.

As a workaround for now, you can do the following:

$ pikaur -S arch-audit-git --confirm

(Though in this specific case, you only get a bit further along before running into another issue which is that you need to install the rust nightly toolchain before building the arch-audit-git package if you choose rustup instead of rust)

from pikaur.

actionless avatar actionless commented on August 26, 2024

that's actually related to another problem which i described here: https://wiki.archlinux.org/index.php/Talk:AUR_helpers#Add_.22pacman_wrap.22_column

tl;dr -- pacman doesn't have option like --noconfirm but to skip only first question

from pikaur.

ixjlyons avatar ixjlyons commented on August 26, 2024

Yeah, --noconfirm to me sounds like it simply answers "yes" to the question "Proceed with installation? [Y/n]" for you, allowing for further user interaction later on (like choosing from a list of alternative packages). It looks like it's more for script usage in situations where you never want any user interaction at all. If there are errors along the way, it just exits. I guess it makes sense if you're automating Arch setups.

My "vote" (if you're counting them) on this would be to, at least temporarily, remove the --noconfirm flag and deal with the extra confirm step when there are repo dependencies. You're already going through a series of confirmation steps at this point in usage of pikaur (want to install? want to edit pkgbuild?, etc.), and if people really do not want to interact with pikaur, they can add the --noconfirm flag themselves. This way, pikaur isn't seemingly making decisions on your behalf by default. I'm happy to submit a PR.

I suppose you could try to recognize this scenario (repo dep has multiple providers) and remove the --noconfirm, but I would still prefer to be made aware of the fact that a new repo package is being installed. That information isn't very apparent until after it has happened in some cases.

from pikaur.

actionless avatar actionless commented on August 26, 2024

yup, i think i'll change that in a similar way for now (because i'll also change the order of steps to avoid big time gap between the questions)

but later on i would like to submit changes to pacman to implement that new option for skipping only one confirmation but not any extras like conflicts or alternatives

from pikaur.

actionless avatar actionless commented on August 26, 2024

@ixjlyons see the linked commit (on a separate branch)

from pikaur.

ixjlyons avatar ixjlyons commented on August 26, 2024

I haven't done thorough testing, but it seems to work for me. I think relying more on makepkg is a good direction to go in and removes some code/complexity, so 👍 for me. I can't seem to reproduce the failure on Travis though.

If you can get something like --assume-yes added to pacman, I'd still like to be able to see and confirm that installing an AUR package will pull in repo dependencies before it happens. So, for example, it would be cool to have a single prompt that shows the AUR package to be installed, any dependencies in the AUR, and any repo dependencies. Then I can confirm all of that and then proceed through PKGBUILD viewing etc. It seems like doing that would require some bigger changes, though, and I don't think you'd be able to rely on makepkg UI for repo dependency installation in that case.

from pikaur.

actionless avatar actionless commented on August 26, 2024

i merged that branch into the mainline

from pikaur.

Related Issues (20)

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.