Commit graph

148 commits

Author SHA1 Message Date
jguer a33f43f502 feat(deps): don't install check deps if --nocheck is passed.
feat(makepkg): automatically pass -d to makepkg if -dd is passed
2021-03-17 23:18:44 +01:00
jguer d7424b1b28 feat(install): implement support for -dd 2021-03-17 23:18:44 +01:00
jguer 5da8161328 chore(install): reduce cognitive load 2021-03-17 23:18:44 +01:00
D1CED c8a74cb4a4 prevent leaking goroutines 2021-03-12 20:41:55 +01:00
D1CED eb9ff86aa9 fixed lint issues 2021-03-12 18:11:30 +01:00
Jannis M. Hoffmann 1a8ee2012d removed alpm dependency from download 2021-03-12 18:11:30 +01:00
Jannis M. Hoffmann df1361aa05 moved Upgrade to db
to reduce dependencies
2021-03-12 18:11:30 +01:00
Jannis M. Hoffmann 5d2c763fdb reroute dep->rpc dependency via query 2021-03-12 18:11:30 +01:00
Jannis M. Hoffmann 34f7dbc7fc Narrow interface in completion 2021-03-12 18:11:30 +01:00
Jannis M. Hoffmann 5993613c53 Added type alias for alpm types in db 2021-03-12 18:11:30 +01:00
xvqxy 9fc6d9c128 fix(query): Respect --deps and --explicit.
This fixes #1283.

yay --query --upgrades [--explicit|--deps] will not return same packages pacman
does extended with AUR packages.
yay --show --numberupgrades [--explicit|--deps] will also work.
2021-02-14 22:38:49 +01:00
jguer afc72daba7
test(download): test pkgbuild fetching 2021-01-31 19:07:08 +01:00
jguer ee3c51f6f2
feat(pkgbuild): extract logic 2021-01-31 19:07:08 +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
ccat3z bb50b4079f fix(exe): fix timeout of OSRunner.Capture()
kill all child processes
2020-12-10 09:07:33 +01:00
jguer 182f4c7f6c
test(pgp): temporary fix for random order test 2020-12-10 00:29:56 +01:00
jguer 8d9fed2ad0
fix(query): fix remote package slow filtering 2020-11-16 08:59:35 +01:00
Kazuki Sawada 8c4fe837d3 Fill fields of CmdBuilder with options specified in commandline 2020-11-15 15:13:44 +01:00
jguer 6beefb1400
fix(config): fix save config 2020-11-01 09:09:38 +01:00
lwlf 497f94ca9f
parent 55a6767b44
author lwlf <wuhaojie_2011@sina.com> 1603706823 +0800
committer jguer <me@jguer.space> 1604217613 +0100
gpgsig -----BEGIN PGP SIGNATURE-----

 iQIzBAABCAAdFiEEP4pAozwhlAIAKURxbWzJvqhVazUFAl+eaw0ACgkQbWzJvqhV
 azU8Dg//XEcgshJ3DqS54kGDOhOXvp3RGWDW6EGYS9UG22ul6af2Yxgt+sNksQY2
 oaTBV2TiQ979AWikJ70waTLQEkkqqkbG1eKz0AWniQQuHPmpTu/9CA6e5hX5f+nh
 AdeUdvz8UcxRd2n80YCVYv7KEs2QkR1ZU4gE+42BG/ohdWSoAxfd1S/skDJ2uYjx
 VUu/ZVYh1qsgLhoIqLpnKzv0jPDVvbpzQ0il+1Zyl2P7qC8QKDTHkfajO6FQV46t
 74anbsk1HrwJSK2G8Z25h/vzi+6Vz36koS7A8mQCLz4jpQZho0Ax7wkhPwLhYSNf
 8CRTK8uoyczTLECOBXnwwrQoDl21N4EgqzZWDBso6DEozBZMteSd74liye3FAXff
 vWmN12pf6nh8uUN5kUGaj/Jq6XWij0cdU4vM0CpRzlzAw3OV4Z0RTwVHqAy6qU6J
 M73cIwVjzVEmPAjWlD2y1ZbTNFUsbWNZ4iqxWXcvc2IOuR4Ywjv+T45NcFXB6RcZ
 PoEivscWy/nEkmihtn9bAIhZXze/UMgIktOV8FyrYFizlVNmZ3HuFPlu6tXRFIZK
 RdGbTeLunPGMLg8iw5C9rKe8/vvsVlUpLUiguyr7w3vUS9QpxLPd8mHlsUETp3p2
 OKxz3zD4/BRaRmuL6Gef7KeroCvJYZGnVpTHPHoOENkSzGxqHCk=
 =D+N6
 -----END PGP SIGNATURE-----

unsaved config when yay's config path does not exist

unsaved config when yay's config path does not exist

unsaved config when yay's config path does not exist

unsaved config when yay's config path does not exist

unsaved config when yay's config path does not exist

fix: unsaved config when yay's config path does not exist

fix: unsaved config when yay's config path does not exist

fix: unsaved config when yay's config path does not exist

fix: unsaved config when yay's config path does not exist

fix: unsaved config when yay's config path does not exist
2020-11-01 09:00:47 +01:00
jguer 55a6767b44 fix(parser): use Fields instead of Split 2020-10-30 11:09:06 +01:00
jguer 81b5feb68a fix(passer): fix slice copying for passer 2020-10-30 11:09:06 +01:00
jguer 7d080df6ac fix(config): fix mflags and gitflags 2020-10-26 09:32:22 +01:00
jguer c4dc9bec6e fix(ialpm): fix typo 2020-10-26 09:32:22 +01:00
jguer f6cb0bc460
fix(provide): fix dep pool populate with unversioned deps 2020-10-06 13:40:19 +02:00
jguer 7979279c3f
fix(provide): fix provides not finding pagure-database=5.1.0 2020-10-06 06:25:18 +02:00
jguer 678d10e04e
fix(upgrade): export upgrades 2020-10-01 14:06:21 +02:00
jguer 3e698f313a
test(alpm): implement alpm interfaces 2020-10-01 13:38:03 +02:00
jguer d6aa288ab8
fix(alpm): update alpm version 2020-09-20 17:00:45 +02:00
x-usr 5ae510ad6f fix(display): adapt padding to match pacman's.
This change fixes part of #1332 related to splitting information into
multiple lines.
Change is implemented based on current pacman's code.
2020-09-07 23:39:19 +02:00
jguer 5c05811ae5
fix(config): fix unsaved config 2020-09-03 18:26:57 +02:00
jguer 3b2bb28e81
feat(exe): AddMakepkg builder 2020-08-22 01:24:52 +02:00
jguer 1db50882e9
feat(vcs): refactor and test cover 2020-08-22 00:39:26 +02:00
jguer 72f120b0f3
feat(config): refactor config to allow running without config 2020-08-21 02:39:52 +02:00
jguer c5af6f8189
feat(vcs): package vcs 2020-08-21 02:37:03 +02:00
jguer ce79d53eb2
fix(deps): fix wrong method implementation 2020-08-19 00:42:59 +02:00
jguer 7b70462a7c
fix(noconfirm): move noconfirm to config global 2020-08-19 00:30:41 +02:00
jguer 9ad2862b7d
feat(vcs): test upDevel and extract OS runner 2020-08-19 00:30:41 +02:00
jguer 4a761c287b
test(upgrade): test AUR upgrades 2020-08-19 00:30:34 +02:00
jguer 1ccfd3f0b7
fix(dbExecutor): rename functions to use dbExecutor 2020-08-17 00:02:14 +02:00
jguer 7a3794ae75
feat(interface): interface dbexecutor 2020-08-16 23:42:00 +02:00
jguer 388aaf6d7f
fix(tests): test handle creation 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 6b973c6bc5
fix(pkgbuild_download): remove alpmHandle 2020-08-16 23:41:56 +02:00
Jguer 0e2a02b512
fix(clean): extract alpmHandle 2020-08-16 23:41:56 +02:00
Jguer 7bcf2ecb4c
fix(statistics): use alpm executor 2020-08-16 23:41:55 +02:00
jguer 94f650f4d3
style(main): remove alpmHandle 2020-08-16 23:41:55 +02:00
jguer 005b29373d
fix(install): 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 ad9bc9ef8f
feat(db): abstract db ops need for dep 2020-08-16 23:41:55 +02:00
Feresey 0adda5da4f Fix issues 2020-08-08 17:00:18 +01:00
jguer 8074179112
style(filter): make filtering names more relevant 2020-07-27 01:24:28 +02:00
jguer 37372c883f
test(news): add tests for news package 2020-07-27 00:46:32 +02:00
jguer 5b7cee1422
style(news): clarify variable 2020-07-27 00:11:24 +02:00
jguer de92f24ce5
style(parser): simplify option creation 2020-07-26 23:40:21 +02:00
jguer 7dd5d7e13e
fix(parser): fix ignores getting... ignored 2020-07-26 23:00:28 +02:00
jguer cd8fb7143c
test(completion): add basic AUR tests 2020-07-25 00:55:46 +02:00
jguer 45d7da4df6
fix(tests): move runes test to text package 2020-07-24 23:24:53 +02:00
jguer 17eb6b6d10
fix(providers): fix provider display 2020-07-20 09:58:14 +02:00
jguer 42f337f2a5
fix(pgp): package key importing 2020-07-11 00:48:30 +02:00
jguer 054a9ac613
refactor(dep): package dep 2020-07-10 02:36:45 +02:00
jguer e47c9584c1
fix(format): gofumt files 2020-07-08 03:40:50 +02:00
jguer 7a32ffdd37
fix(cmdArgs): deglobal cmd args 2020-07-08 03:22:01 +02:00
jguer 1cbef97ae4
fix(parser): fix tests on list elements 2020-07-06 02:49:33 +02:00
jguer b1a6d154c3
fix(parser): add tests and rename method handles 2020-07-06 02:34:28 +02:00
jguer 2f88858ce6
fix(parser): squash globals into options 2020-07-06 02:02:12 +02:00
jguer d507e024bd
fix(parser): add support for multiple overlapping global options 2020-07-06 01:16:51 +02:00
jguer 56760e1b7c
fix(parser): add support for stackable parameters. Fixes #1155, Fixes #1280 2020-07-06 00:28:04 +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 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 acf95aed5b
fix(format): move time format to text 2020-06-26 09:15:36 +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 5734faf33b
fix(completions): fix path join not making a proper packages url .fixes #1287 2020-06-13 18:47:42 +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
jguer 9fccdcb30f
fix(ci): implement stricter linting settings 2020-05-02 16:17:20 +02:00
morganamilo ab956ea3d2
Hide warnings for ignored packages 2019-11-11 07:15:27 +00:00
morganamilo b60a888981
Simplify stringset function names
Now that stringset has its own module we can use more basic function
names while keeping it obvious what it does.
2019-10-16 23:18:04 +01:00
morganamilo dacd77012c
Move multierror to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo cff358d5d6
Move intrange to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo f2579f26a3
Move stringset to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo 0856edcf04
Move LessRunes into main
This comparitor function could hardly be considored a type. It's also
very small and probably not too useful overall so keep it in utils.
2019-10-16 22:02:50 +01:00
Jguer 077b1092fd
pkg/completion interfaces more strict 2019-10-16 00:03:58 +01:00
Jguer a591b33262
Add errguards throughout the code to enable golangci-lint 2019-10-13 20:56:27 +01:00
Tom Swartz 5d7ea17b15
Fix typo in comment text 2019-10-09 10:15:36 -04:00
Jguer ed274ec665
Improve testing of Intranges 2019-10-05 19:42:47 +01:00
Jguer bf89b3383c
Move IntRange definition to types package 2019-10-05 19:23:13 +01:00
Jguer b01790f752
Moved StringSet definition to types package 2019-10-05 18:39:31 +01:00
Jguer 3d31b52799
Moved LessRunes to types package 2019-10-05 18:11:49 +01:00
Jguer 9e205eef4b
Move MultiError to types package 2019-10-05 17:35:46 +01:00
Jguer c5c2e906d3
Move completion to submodule 2019-10-05 02:02:30 +01:00