* use logger in dep graph
* use logger in dep graph
* use logger in dep graph
* only query for AUR packages once per tier. useful for rpc
* fix performance regression for ros-melodic
* prefer name search first
* implement needed at target gathering
* set default config
* fixup tests for needed
* show new packages in upgrade form if they exist
* refactor up select
* remove unused graph parts
* readd len
* Complete upgrade graphing
* Extract to upgrade pkg
* remove unused dep method
* remove uneeded dep
* cleanup method
* specify io Reader for testing
* use specified input vector
* fix non-active devel
* test base cases
* add devel test cases
* add range tests
* add logger struct
* use logger struct in upgrade
* follow golangci recommendations
* update deps
* update golangci
fix(parser): ensure data is piped when using '-' argument
Fixes#1626.
Check to see if data was actually piped to yay, otherwise it will hang
forever. This error will give users better feedback of how to use the
'-' argument (it is also the same exact error pacman throws for invalid
piped data).
Two tests were added. However, I didn't know how to add a test for the
actual part that detects whether data was piped or not (which is
essentially what this commit adds).
* 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
* add missing locales
* use t.Setenv instead of os.Setenv for tests
* locale: present y/n if localisation is not latin. Always accept y/n in every case
* question: use operation info for question
* edge case where localised n is equal to default y
* add tests for basic locales
* feat(aur): add option to limit concurrent downloads
Adds to config file option 'maxconcurrentdownloads' which if set to
value != 0, limits number of concurrent AUR downloads to specified.
Fixes#1763.
* fix lint issue
* 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
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Fixed end of php use on AUR API
* Added a / to the end of rpc to respect the AUR RPC doc
* Removed the / due to the "AUR unavailable at this moment" error
* add --quiet to systemd-run
this will avoid the `Press ^] three times within 1s to disconnect TTY.` message.
it's mentioned in the systemd-run man page too:
```
--quiet, -q
Suppresses additional informational output while running. This is particularly useful in combination with --pty when it will suppress the
initial message explaining how to terminate the TTY connection.
```
* add --quiet to the tests
* add --quiet to TestABSPKGBUILDRepoExistsPerms too