Find a file
morganamilo 3275f8d8ac
New install algorithm
I have replaced the old install and dependancy algorithms with a new
design that attemps to be more pacaur like. Mostly in minimizing user
input. Ask every thing first then do everything with no need for more
user input.

It is not yet fully complete but is finished enough so that it works,
should not fail in most cases and provides a base for more contributors
to help address the existing problems.

The new install chain is as follows:
	Source info about the provided targets
	Fetch a list of all dependancies needed to install targets
		I put alot of effort into fetching the dependancy tree
		while making the least amount of aur requests as
		possible. I'm actually very happy with how it turned out
		and yay wil now resolve dependancies noticably faster
		than pacaur when there are many aur dependancies.
	Install repo targets by passing to pacman
	Print dependancy tree and ask to confirm
	Ask to clean build if directory already exists
	Download all pkgbuilds
	Ask to edit all pkgbuilds
	Ask to continue with the install
	Download the sources for each packagebuild
	Build and install every package
		using -s to get repo deps and -i to install
	Ask to remove make dependancies

There are still a lot of things that need to be done for a fully working
system. Here are the problems I found with this system, either new or
existing:
	Formating
		I am not so good at formatting myself, I thought best to
		leave it until last so I could get feedback on how it
		should look and help implementing it.
	Dependancy tree
		The dependancy tree is usually correct although I have
		noticed times where it doesnt detect all the
		dependancies that it should. I have only noticed this
		when there are circular dependancies so i think this
		might be the cause. It's not a big deal currently
		because makepkg -i installed repo deps for us which
		handles the repo deps for us and will get the correct
		ones. So yay might not list all the dependancies. but
		they will get installed so I consider this a visual bug.
		I have yet to see any circular dependancies in the AUR
		so I can not say what will happend but I#m guessing that
		it will break.
	Versioned packages/dependencies
		Targets and dependancies with version constriants such
		as 'linux>=4.1' will not be checked on the aur side of
		things but will be checked on the repo side.
	Ignorepkg/Ignoregroup
		Currently I do not handle this in any way but it
		shouldn't be too hard to implement.
	Conflict checking
		This is not currently implemented either
	Split Paclages
		Split packages are not Handles properly. If we only
		specify one package so install from a split package
		makepkg -i ends up installing them all anyway. If we
		specify more than one (n) package it will actually build the
		package base n times and reinstall every split package
		n times.
	Makepkg
		To get things working I decided to keep using the
		makepkg -i method. I plan to eventually replace this
		with a pacman -U based method. This should allow passing
		args such as --dbpath and --config to aur packages
		aswell as help solve some problems such as the split
		packages.
	Clean build
		I plan to improve the clean build choice to be a little
		more smart and instead of check if the directory exists,
		check if the package is already build and if so skip the
		build all together.
2018-01-20 10:00:12 +00:00
vendor/github.com Updated vendored packages 2018-01-19 23:32:07 +09:00
.gitignore Minor polishing using gometalinter. 2017-12-04 15:24:20 +09:00
bash-completion Bruteforce fish completions into submission. 2017-04-10 01:38:58 +01:00
clean.go Satisfied linter 2018-01-19 23:51:18 +09:00
cmd.go New install algorithm 2018-01-20 10:00:12 +00:00
completions.go git devel package support restored, house keeping, fixes related to config files. 2017-10-19 11:30:37 +09:00
config.go local repo goes first 2018-01-16 00:09:32 +07:00
dependencies.go New install algorithm 2018-01-20 10:00:12 +00:00
download.go Resolves #57. Added Package ignoring to AUR. Handles made private. 2017-10-18 11:38:19 +09:00
Gopkg.lock Updated vendored packages 2018-01-19 23:32:07 +09:00
Gopkg.toml Refactoring 2017-08-01 17:43:20 +01:00
install.go New install algorithm 2018-01-20 10:00:12 +00:00
LICENSE Create LICENSE 2016-09-05 03:43:29 +01:00
Makefile Minor polishing using gometalinter. 2017-12-04 15:24:20 +09:00
parser.go New install algorithm 2018-01-20 10:00:12 +00:00
print.go New install algorithm 2018-01-20 10:00:12 +00:00
print_test.go Fixed tests for unified structure 2017-08-07 10:53:20 +01:00
query.go New install algorithm 2018-01-20 10:00:12 +00:00
query_test.go Fixed tests for unified structure 2017-08-07 10:53:20 +01:00
README.md Updated Pictures and Changelog 2017-12-06 10:11:03 +09:00
upgrade.go New install algorithm 2018-01-20 10:00:12 +00:00
vcs.go New install algorithm 2018-01-20 10:00:12 +00:00
vcs_test.go Fixed tests for unified structure 2017-08-07 10:53:20 +01:00
yay.8 Update manpage 2018-01-14 20:34:08 +00:00
yay.fish Bruteforce fish completions into submission. 2017-04-10 01:38:58 +01:00
zsh-completion Bruteforce fish completions into submission. 2017-04-10 01:38:58 +01:00

yay

Yet another Yogurt - An AUR Helper written in Go

Packages

yay yay-bin GitHub license

There's a point in everyone's life when you feel the need to write an AUR helper because there are only about 20 of them. So say hi to 20+1.

Yay was created with a few objectives in mind and based on the design of yaourt and apacman:

  • Have almost no dependencies.
  • Provide an interface for pacman.
  • Have yaourt like search.
  • Minimize user input
  • Know when git packages are due for an upgrade.

Features

  • AUR Tab completion
  • Search narrowing (yay linux header will first search linux and then narrow on header)
  • No sourcing of PKGBUILD is done
  • The binary has no dependencies that pacman doesn't already have.
  • Sources build dependencies
  • Removes make dependencies at the end of build process

Custom Operations

  • yay <Search Term> presents package selection menu
  • yay -Qstats delivers system statistics
  • yay -Cd cleans unneeded dependencies
  • yay -G downloads PKGBuild from ABS or AUR
  • yay --gendb generates development package DB used for devel updates.

Changelog

2.219

  • Updated manpage
  • Updated --help
  • Fixed AUR update fails with large number of packages #59
  • Check if package is already in upgrade list and skip it. #60
  • Add -V and -h for flag parsing @AnthonyLam
  • Prevent file corruption by truncating the files @maximbaz
  • Print VCS error details @maximbaz
  • Using '-' doesn't raise an error @PietroCarrara
  • use Command.Dir in aur.PkgInstall; Fixes #32 #47 @afg984
  • Suffix YayConf.BuildDir with uid to avoid permission issues @afg984 (Not included in last changelog)

2.200

  • Development github package support readded

2.196

  • XDG_CONFIG_HOME support
  • XDG_CACHE_HOME support

2.165

  • Upgrade list now allows skipping upgrade install

2.159

  • Qstats now warns about packages not available in AUR

2.152

  • Fetching backend changed to Mikkel Oscar's Aur
  • Added support for development packages from github.
  • Pacman backend rewritten and simplified
  • Added config framework.

1.115

  • Added AUR completions (updates on first completion every 48h)

1.101

  • Search speed and quality improved #3

1.100

  • Added manpage
  • Improved search #3
  • Added -G to get pkgbuild from the AUR or ABS. #6
  • Fixed #8
  • Completed and decluttered zsh completions
  • If $EDITOR or $VISUAL is not set yay will prompt you for an editor #7

1.91

  • --downtop has been replaced with --bottomup (as is logical)
  • yay -Ssq and yay -Sqs now displays AUR packages with less information
  • Repository search now uses the same criteria as pacman

1.85

  • yay now does -Si for AUR packages
  • Fixed package install bugs

1.83

  • Added new dependency resolver for future features
  • Sort package statistics

1.80

  • yay now warns when installing orphan packages
  • Added orphan status to number menu
  • Qstats now checks if system has orphan packages installed

1.78

  • Added foreign package statistics to Qstats
  • Group installing is now possible
  • Better handling of package dependency installing

1.76

  • Fixed critical bug that prevented AUR dependencies from being installed.

1.70

  • Stable for everyday use
  • Bottom up package display
  • Number menu like yaourt/apacman
  • System package statistics