Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12.0.2: yay --clean doesn't work anymore #2070

Closed
andrei-pavel opened this issue Apr 5, 2023 · 3 comments
Closed

12.0.2: yay --clean doesn't work anymore #2070

andrei-pavel opened this issue Apr 5, 2023 · 3 comments

Comments

@andrei-pavel
Copy link

Affected Version

$ yay -V
yay v12.0.2 - libalpm v13.0.2

Describe the bug

yay --clean doesn't work anymore. It claims that clean and refresh cannot be used together, but I'm not passing --refresh. It's like refresh started being enabled by default.

$ yay --clean
error: invalid option: '--clean' and '--refresh' may not be used together
 -> exit status 1

Reproduction Steps

  1. Run yay --clean.
  2. Observe error.

Expected behavior

I would have expected that no error is printed, and that dependencies are removed, just as before.

Output

$ yay --clean --debug
[DEBUG:runner] running /sbin/sudo pacman --debug -S --clean -y -u --config /etc/pacman.conf --
error: invalid option: '--clean' and '--refresh' may not be used together
 -> exit status 1
$ yay -Pg
{
	"aururl": "https://aur.archlinux.org",
	"aurrpcurl": "https://aur.archlinux.org/rpc?",
	"buildDir": "/home/andrei/.cache/yay",
	"editor": "",
	"editorflags": "",
	"makepkgbin": "makepkg",
	"makepkgconf": "",
	"pacmanbin": "pacman",
	"pacmanconf": "/etc/pacman.conf",
	"redownload": "no",
	"rebuild": "no",
	"answerclean": "",
	"answerdiff": "",
	"answeredit": "",
	"answerupgrade": "",
	"gitbin": "git",
	"gpgbin": "gpg",
	"gpgflags": "",
	"mflags": "",
	"sortby": "votes",
	"searchby": "name-desc",
	"gitflags": "",
	"removemake": "ask",
	"sudobin": "sudo",
	"sudoflags": "",
	"version": "12.0.2",
	"requestsplitn": 150,
	"completionrefreshtime": 7,
	"maxconcurrentdownloads": 0,
	"bottomup": true,
	"sudoloop": false,
	"timeupdate": false,
	"devel": false,
	"cleanAfter": false,
	"provides": true,
	"pgpfetch": true,
	"upgrademenu": true,
	"cleanmenu": true,
	"diffmenu": true,
	"editmenu": false,
	"combinedupgrade": false,
	"useask": false,
	"batchinstall": false,
	"singlelineresults": false,
	"separatesources": true,
	"newinstallengine": true,
	"debug": false,
	"rpc": true
}
EXIT 0
@Jguer
Copy link
Owner

Jguer commented Apr 5, 2023

closing as intended change https://github.com/Jguer/yay/releases/tag/v12.0.0

duplicate of #2049

@Jguer Jguer closed this as completed Apr 5, 2023
@XeroOl
Copy link

XeroOl commented Apr 6, 2023

if this is intended, perhaps -cc shouldn't be mentioned in the output of yay --help

@Jguer
Copy link
Owner

Jguer commented Apr 6, 2023

the -cc mentioned in yay --help refers to the -S operation that was added for the lack of targets (pacman -Scc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants