Commit graph

342 commits

Author SHA1 Message Date
Jo 3d5a43c294
chore(yay): bump version (#1949)
bump major
2023-03-07 21:04:06 +00:00
Jo e6ed869df1
chore(yay): remove global cfg (#1946)
remove global cfg
2023-03-05 21:58:18 +00:00
Jo 8b8d6001a4
fix(new_engine): Improve partial upgrade protection and pinned deps (#1945)
* fix dep graph, existing in graph

* do not change from same dep reason

* roll up layer installs in case of fail

* re-use pacman exclude mechanism

should finish the reimplementation of the missing guards from the legacy
engine.

* include update in debug log

* test rollups
2023-03-05 17:31:11 +00:00
Joey H 0387dfdb59
fix(install): use global arguments when removing make dependencies (#1940)
fix(install): use global arguments when removing make dependencies

One example where this would fail before is when the `--root` argument
was passed in by the user. Yay would install the make dependencies to
the new root directory, but would try to remove them from / causing the
installation to fail if the make dependencies were not found in the
default installation path (/).
2023-02-26 11:25:02 +00:00
Jo 4626a0409c
fix(vcs): do not vcs update gather orphan info (#1902)
* reduce complexity of devel upgrade gathering

* clean orphans devel
2023-01-23 23:03:32 +00:00
Jo 1bfbd01f94
fix(sync): do not update vcs info of failed packages (#1901)
* extract srcinfo service to pkg

* take into account failed installs for vcs update. Fixes #1892

* fix tests
2023-01-23 21:43:58 +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
Jo f8e7891b0b
refactor(vcs): remove mux and use interface for other packages (#1859)
* refactor(vcs): remove context passing mutex from VCS interface

* simplify devel upgrade gather

* update vcs upgrade tests

* remove unused mock
2022-12-18 16:37:15 +00:00
Jo 7da9f4869d
feat(new engine): skip built and respect --needed (#1852)
* add built package check

* respect --needed for new engine

* add needed check and test

* add test for not built
2022-12-16 17:23:44 +00:00
Jo 1b5f0d66fe
Fix legacy engine install issues (#1842)
* fix debug pkg clearing pkg archive slice

* add debug messages and limit check for srcinfo

* treat pkgbuildDirs as expected directory, not proven directory

Co-authored-by: David Tomaschik <david@systemoverlord.com>

Co-authored-by: David Tomaschik <david@systemoverlord.com>
2022-11-29 13:23:52 +00:00
Jo 9f67d10d5c
feat(v12): add group install (#1835)
v12engine: add group install
2022-11-20 02:47:23 +00:00
Jo 6ad63cae10
fix: rework menus to work on both flows (#1830)
* rework menus to work on both flows

* add installed package split

* remove unused field

* Add post install hooks
2022-11-20 00:51:55 +00:00
jguer f042713aaa
fix: fix linting errors 2022-11-15 15:44:50 +01:00
jguer 3f7f55f260
simplify src download 2022-11-14 01:14:13 +01:00
jguer 0b3ca79788
reduce scope 2022-11-01 23:51:24 +01:00
jguer b5bdcfbd1a
add basic sync upgrade capabilities 2022-11-01 23:48:35 +01:00
jguer d3efb59da3
extract upgrade target adder 2022-10-28 23:58:15 +02:00
jguer 849e8f7b60
restore install support for legacy 2022-10-28 01:01:03 +02:00
jguer ba935ccf95
add support for target install 2022-10-28 00:38:11 +02:00
jguer f496dbac8b
error refactor 2022-09-20 00:44:06 +02:00
jguer e4fdc9a4d4
readd makedep primitives 2022-09-20 00:01:19 +02:00
jguer ed94152cfe
first install 2022-09-12 00:18:38 +02:00
jguer 351e352f64
basic aur install 2022-09-11 23:15:31 +02:00
jguer 5bb46ac1de
add repo install 2022-09-09 20:57:18 +02:00
jguer 95e7542ade
Merge remote-tracking branch 'origin/next' into jguer/local-pkgbuild-install 2022-09-06 23:39:08 +02:00
jguer cadeecc4df
add dep graph for local install 2022-09-06 23:38:47 +02:00
davejab 0d1e339fda
Remove package from VCS on failed install (#1802) 2022-09-03 00:42:37 +00:00
Jo 714fee0b18
Chore: Cleanup (#1800) 2022-08-22 22:20:09 +00:00
jguer b054828aa8
wip 2022-08-22 23:28:53 +02:00
Jo 888fb4b1d0
Fix minor question and locale issues (#1786)
* 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
2022-08-13 22:56:23 +00:00
jguer 1a52da5891
Make provides disabled by default. Add Migration to set provides to disabled 2022-08-05 22:55:54 +02:00
vqrkxo e0006ec272
feat(aur): add option to limit concurrent downloads (#1768)
* 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
2022-06-28 12:05:29 +02:00
J Guerreiro d83c5ca5a1
fix(deps): update deps (#1689) 2022-02-05 14:25:59 +01:00
jguer d096d15973 feat(menus): extract menus package 2021-10-27 23:45:23 +02:00
jguer 6364b4efe8 fix(menus): improve edit and diff menu structure 2021-10-27 23:45:23 +02:00
jguer f3c3e2e4d4 fix(clean_menu): optimize any base installed 2021-10-27 23:45:23 +02:00
jguer a43fbacc96 fix(clean_menu): anyExistInCache already verifies if cleanMenu is necessary 2021-10-27 23:45:23 +02:00
jguer 1fb9f410a6 chore(install): reduce scope of toSkipSlice 2021-10-27 23:45:23 +02:00
jguer 34e81d5d7d fix(clean_menu): clean menu errors don't exit yay anymore 2021-10-27 23:45:23 +02:00
jguer 555d1ead95
chore(version): bump major version 2021-09-08 22:28:08 +02:00
jguer ffb17fd2e3 feat(su): deelevate if ran as su without tool 2021-09-07 00:41:36 +02:00
jguer bc1d900fa9 feat(su): deelevate if ran as su using a privilege elevation tool 2021-09-07 00:41:36 +02:00
jguer 1869bbe291
chore(install): prefer short form ifs 2021-08-23 17:37:58 +02:00
jguer b7f9a5e677
fix(install): fix missing error display in install 2021-08-21 16:17:19 +02:00
jguer 1d903b6c7e test(sources): add PKGBUILD source tests 2021-08-17 14:26:57 +02:00
jguer aedbcffc80 feat(sources): concurrent makepkg downloading 2021-08-17 14:26:57 +02:00
jguer e231b2b02d chore(yay): modernize exec commands 2021-08-14 00:10:43 +02:00
jguer 3de02dbd73 fix(install): -debug sufix is optional 2021-08-11 22:28:24 +02:00
jguer cb4b57f6d8 chore(golangci): add new linters 2021-08-11 22:19:55 +02:00