Find a file
2018-07-19 17:31:22 +01:00
.go Improve makefile 2018-03-23 05:36:19 +00:00
completions Add bash and zsh completion for new flags 2018-07-01 17:21:54 +01:00
doc Fix typo 2018-07-17 22:36:01 +01:00
testdata/keys Do not depend on the Internet for keys_test.go 2018-03-23 14:17:47 -04:00
vendor/github.com Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
.gitignore fix Makefile and fix README 2018-02-17 18:27:36 +00:00
callbacks.go Fix misspellings and typos 2018-04-17 18:01:34 +01:00
clean.go Fix typos 2018-05-12 17:16:48 +01:00
cmd.go Update readme, depreciate -Pu and -Pn 2018-07-17 22:01:52 +01:00
completions.go Fix completions from using wrong path. Regression introduced in filepath join 2018-04-21 16:43:12 +01:00
config.go Separate Pacman upgrade and AUR Upgrade by default 2018-06-30 03:40:19 +01:00
dep.go Improve --asdeps and --asexplicit handling 2018-05-29 22:35:58 +01:00
depCheck.go Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
depOrder.go Fix build order being reversed 2018-05-29 13:13:33 +01:00
depPool.go Fix typos 2018-06-04 20:12:26 +01:00
download.go Always show diffs for newly cloned packages 2018-06-10 03:41:25 +01:00
Gopkg.lock Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
Gopkg.toml Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
install.go Show .install files with pkgbuilds when editing 2018-07-18 09:24:57 +01:00
ISSUE_TEMPLATE.md Fix strange linting applied 2018-02-28 14:11:40 +00:00
keys.go Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
keys_test.go Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
LICENSE Create LICENSE 2016-09-05 03:43:29 +01:00
main.go Separate Pacman upgrade and AUR Upgrade by default 2018-06-30 03:40:19 +01:00
Makefile Major version update 2018-07-16 11:35:25 +01:00
parser.go Merge pull request #524 from AlexWayfer/support_commas_in_parse_number_menu 2018-07-02 16:40:05 +01:00
parser_test.go Support commas in parserNumberMenu 2018-07-02 18:21:00 +03:00
print.go Correctly handle AUR providers during noconfirm 2018-06-19 22:20:24 +01:00
print_test.go Fixed tests for unified structure 2017-08-07 10:53:20 +01:00
query.go Fixed trivial typo 2018-06-10 13:58:21 +05:30
query_test.go Fixed tests for unified structure 2017-08-07 10:53:20 +01:00
README.md Mention --save in --combinedupgrade FAQ 2018-07-19 17:31:22 +01:00
upgrade.go Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
upgrade_test.go Add more tests for upgrade highlighting 2018-04-17 10:25:21 +03:00
utils.go Merge pull request #447 from Morganamilo/fix#131 2018-06-01 19:11:52 +01:00
vcs.go Replace gopkgbuild with go-srcinfo (#528) 2018-07-16 15:28:18 +01:00
vcs_test.go Add parseNumberMenu() 2018-03-10 03:04:44 +00:00

yay

Yet another Yogurt - An AUR Helper written in Go

Packages

yay yay-bin yay-git 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, apacman and pacaur:

  • 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
  • Download PKGBUILD from ABS or AUR
  • Ask all questions first and then start building
  • 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.
  • Advanced dependency solving
  • Remove make dependencies at the end of the build process

Installation

If you are migrating from another AUR helper you can simply install Yay from the AUR like any other package.

The initial installation of Yay can be done by cloning the PKGBUILD and building with makepkg.

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Contributing

Contributors are always welcome!

If you plan to make any large changes or changes that may not be 100% agreed on, we suggest opening an issue detailing your ideas first.

Otherwise send us a pull request and we will be happy to review it.

Code Style

All code should be formatted through go fmt. This tool will automatically format code for you. Although it is recommended you write code in this style and just use this tool to catch mistakes.

Building

Yay is easy to build with its only build dependency being go and the assumption of base-devel being installed.

Run make to build Yay. This will generate a binary called yay in the same directory as the Makefile.

Run make test to test Yay. This will check the code is formatted correctly, run the code through go vet and run unit tests.

Yay's Makefile automatically sets the GOPATH to $PWD/.go. This makes it easy to build using the dependencies in vendor/. Running manual go commands such as go build will require that you to either set the GOPATH manually or go get The dependencies into your own GOPATH.

Vendored Dependencies

Yay depends on a couple of other projects. These are stored in vendor/ and are built into Yay at build time. They do not need to be installed separately.

Currently yay Depends on:

Frequently Asked Questions

Yay does not display colored output. How do I fix it?

Make sure you have the Color option in your /etc/pacman.conf #123

Yay is not prompting to skip packages during sysupgrade (issue #554)

The default behavior was changed after v8.918 (see: 3bdb534). To restore such behavior use --combinedupgrade. This can also be permanently enabled by appending --save. Note: this causes native pacman to become partial.

Sometimes diffs are printed to the terminal and other times they are paged via less. How do I fix this?

Yay uses git diff to display diffs, by default git tells less to not page if the output can fit one terminal length. This can be overridden by exporting your own flags export LESS=SRX.

Yay is not asking me to edit PKGBUILDS and I don't like diff menu! What do?

yay --editmenu --nodiffmenu --save

Only act on AUR packages or only on repo packages?

yay -{OPERATION} --aur yay -{OPERATION} --repo

Out Of Date AUR Packages message is displayed, why doesn't yay update them?

This means the package has been flagged out of date on the AUR but maintainer has not updated the PKGBUILD yet.

Examples of Custom Operations

  • yay <Search Term> presents package selection menu
  • yay -Ps prints system statistics
  • yay -Pu prints update list
  • yay -Yc cleans unneeded dependencies
  • yay -G downloads PKGBUILD from ABS or AUR
  • yay -Y --gendb generates development package DB used for devel updates.
  • yay -Syu --devel --timeupdate Normal update but also check for development package updates and uses PKGBUILD modification time and not version to determine update

Images