Commit graph

90 commits

Author SHA1 Message Date
Jo 8d18f1be18
fix(new_engine): add aur client support to mixed source display (#1919)
* update aur client and use correct aur client

* add aur query client support for mixed source engine
2023-02-20 12:14:16 +00:00
Jo b8debd1ae7
chore(yay): fix small linting issues (#1885)
* replace context.TODO() in tests context.Background()

* remove mock TODOs

* prettier

* apply missing linting
2023-01-03 21:43:56 +00:00
Jo 28d90c981e
feat(new engine): local install feature testing (#1867)
* make config into parameter

* test(new engine): local install test

* test(keys): fix test keys

* complete integration test for local install

* add simple mising mechanism
2022-12-29 12:34:53 +00:00
jguer 5aeb0d696c
support contains 2022-11-13 23:53:37 +01:00
jguer 01721c816c
refactor query builder to include AURClient 2022-11-13 14:29:00 +01:00
jguer bc4732e9e1
add debug mode 2022-09-20 00:11:10 +02:00
jguer f7286b25ae
add local graph util 2022-09-06 23:25:44 +02:00
Jo 70695d7de7
chore(yay): avoid clearing panics in the main func (#1801) 2022-08-23 16:50:17 +00:00
jguer 1a52da5891
Make provides disabled by default. Add Migration to set provides to disabled 2022-08-05 22:55:54 +02:00
J Guerreiro e4a1f018ea
feat(search): Add fuzzy name matching and mixed sources (#1719)
* fix(alpm): fix callback text

* feat(yay): Add mixed search result

* remove old result structs

* add option for controlling query builder

* only set query builder after parsing args

* add parser args

* update manpage

* write test for results

* write test for results

* mixed source test

* only sort 1 time with every mode
2022-03-06 23:48:15 +00:00
jguer 555d1ead95
chore(version): bump major version 2021-09-08 22:28:08 +02:00
jguer c8fcdeae5b feat(su): use alternative privilege elevators when sudo is not available
When sudobin/custom wrapper is not available try the following in order:

- sudo
- doas
- pkexec
- su
2021-08-31 02:17:27 +02:00
jguer b7f9a5e677
fix(install): fix missing error display in install 2021-08-21 16:17:19 +02:00
jguer 5be99d9bf0 chore(README): small reorganization of README 2021-08-20 18:33:52 +02:00
jguer e231b2b02d chore(yay): modernize exec commands 2021-08-14 00:10:43 +02:00
jguer cb4b57f6d8 chore(golangci): add new linters 2021-08-11 22:19:55 +02:00
jguer 172ee1f4e8 refactor(exe): port pacman calls to cmd_builder 2021-08-08 17:45:07 +02:00
jguer 1a2e5b9529 refactor(settings): move args to own package to allow pacman cmd builder 2021-08-08 17:45:07 +02:00
jguer 545ea772eb feat(aur): customize User Agent 2021-06-09 03:57:37 +02:00
x1b6e6 de113b87f3 Add support for multiple 'Architecture' values
This allows architecture to be multivalued. On x86-64 machines, this
could be something like:
    Architecture = x86-64-v3 x86-64

We use the first specified Architecture value in mirrorlist $arch
variable replacement, as this is backwards-compatible and sane.

More info:
https://git.archlinux.org/pacman.git/commit/?id=3179db108a83104d9de6d1d607f55f8118e92160

Signed-off-by: x1b6e6 <ftdabcde@gmail.com>
2021-05-04 08:43:56 +02:00
jguer 829f944659
fix(output): don't print exit status message 2021-03-18 22:40:37 +01:00
Julian Daube 348f2de85c fix(yay): mirror pacman return codes on run error
makepkg expects pacman-alikes to return 127 (missing dependency)
when called with -T as argument. yay does not behave like this since
it overwrite the return value with 1 in every case.

This commit will test for ExitCode errors and return the called
applications error code instead of 1, when possible. This gets yay
closer to be used as pacman alternative for makepkg with

```
PACMAN=yay makepkg -s
```

fixes  Jguer/yay#1455
2021-03-12 20:42:42 +01:00
jguer c221d5ebbd
fix(yay): give priority to LC_MESSAGES. fixes #1442 2021-01-29 22:45:42 +01:00
xhqr 24edabe5df Print error if PATH is empty.
This fixes #881.

Before:
```bash
$ PATH= /usr/bin/yay -Qu
$ echo $?
1
```

After:
```bash
$ PATH= ./yay -Qu
exec: "pacman-conf": executable file not found in $PATH
$ echo $?
1
```
2021-01-16 18:27:39 +01:00
jguer c85bbf54da
chore(yay): remove deprecated dependency 2020-12-10 00:18:23 +01:00
jguer 6beefb1400
fix(config): fix save config 2020-11-01 09:09:38 +01:00
jguer 72f120b0f3
feat(config): refactor config to allow running without config 2020-08-21 02:39:52 +02:00
jguer c1171d4146
style(runner): use command runner for commands 2020-08-19 01:48:07 +02:00
jguer 7a3794ae75
feat(interface): interface dbexecutor 2020-08-16 23:42:00 +02:00
Jguer f3925e2481
fix(sync_list): remove alpmHandle
wip
2020-08-16 23:41:56 +02:00
jguer 94f650f4d3
style(main): remove alpmHandle 2020-08-16 23:41:55 +02:00
jguer 9fd6917bc0
fix(alpm): transfer handle initialization to executor 2020-08-16 23:41:55 +02:00
jguer 8165174462
fix(dbExecutor): move dbExecutor to runtime config 2020-08-16 23:41:55 +02:00
jguer c159c06222
fix(parser): fix alpm initialize 2020-07-26 23:08:47 +02:00
jguer 7dd5d7e13e
fix(parser): fix ignores getting... ignored 2020-07-26 23:00:28 +02:00
jguer e47c9584c1
fix(format): gofumt files 2020-07-08 03:40:50 +02:00
jguer a0cff2b622
fix(cmdArgs): reorder args 2020-07-08 03:31:35 +02:00
jguer 7a32ffdd37
fix(cmdArgs): deglobal cmd args 2020-07-08 03:22:01 +02:00
jguer 36730a41e3
fix(config): package alpmHandle into runtimeSettings 2020-07-05 16:58:35 +02:00
jguer 968b61ac57
fix(config): pack pacmanConf into runtime 2020-07-05 15:34:27 +02:00
jguer 0bae6e2f7d
fix(config): move default settings to config 2020-07-05 09:36:27 +02:00
jguer 9b49f76bbd
fix(config): vcs filepath fix 2020-07-05 09:36:27 +02:00
jguer 2dc01d8a3e
fix(init): refactor init to use runtime 2020-07-05 09:36:27 +02:00
jguer fb5b6b74fe
fix(parser): package parser 2020-07-05 09:36:27 +02:00
jguer cb8a988701
fix(news): package news and begin settings 2020-07-05 09:36:27 +02:00
jguer d0450179f9
fix(usecolor): usecolor belongs to text. remove deprecated 2020-06-26 09:03:45 +02:00
jguer d003e96e07
fix(ci): fix env propagation
fix broken ci artifact download
2020-06-13 19:49:57 +02:00
jguer 0c45a390a2
fix(locale): make install with locale 2020-05-30 00:43:18 +02:00
jguer 87d0dd64c3
fix(locale): add base locale 2020-05-08 18:13:51 +02:00
jguer 732f1a5412
feat(localization): wrap all translatable strings 2020-05-05 19:21:42 +02:00