Comments (8)
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.
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.
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.
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.
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.
@ixjlyons see the linked commit (on a separate branch)
from pikaur.
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.
i merged that branch into the mainline
from pikaur.
Related Issues (20)
- pikaur build fails due to missing python module "build" HOT 1
- `pikaur -P` to warn if running from within the pikaur build directory
- remember that I checked files when build fails
- Request: Option to add git safe.directory exception HOT 1
- pikaur 1.21 is broken on Manjaro aarch64 HOT 1
- XDG variables / config-settings confusion HOT 2
- After the latest update in Manjaro-rpi4, Pikaur stopped working HOT 1
- zsh completion not working HOT 2
- systemd version check error
- rc version of systemd breaks pikaur
- Systemd check dynamic version code breaks with rc release HOT 2
- Change warning for base-devel if doas is used instead of sudo HOT 5
- pikaur failed to build duckstation-git HOT 13
- Unhelpful error message HOT 4
- "Read damn arch-wiki before borking your computer"
- How to disable warning HOT 2
- you guys are dicks HOT 3
- Error message "Read damn arch-wiki before borking your computer" HOT 1
- Feature request run0 as privilege escalation tool HOT 1
- pikaur incorrectly append unknown options to pacman HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pikaur.