Package Details: cheat 4.2.3-4

Git Clone URL: https://aur.archlinux.org/cheat.git (read-only, click to copy)
Package Base: cheat
Description: Allows you to create and view interactive cheatsheets on the command-line
Upstream URL: https://github.com/cheat/cheat
Keywords: cheatsheet cli doc man terminal
Licenses: MIT, CC0 1.0 Universal
Conflicts: python-cheat
Replaces: python-cheat
Submitter: yochananmarqos
Maintainer: yochananmarqos (MagicAndWires)
Last Packager: yochananmarqos
Votes: 27
Popularity: 0.68
First Submitted: 2019-11-03 15:26 (UTC)
Last Updated: 2022-03-18 15:05 (UTC)

Pinned Comments

yochananmarqos commented on 2020-07-13 21:49 (UTC)

The upstream zsh completion file conflicts with the zsh-completions package. It's now installed to /usr/share/doc/cheat/_cheat. You can copy or symlink it to a custom folder like $HOME/.local/share/zsh/site-functions/ and source it in your .zshrc.

Latest Comments

yochananmarqos commented on 2021-06-09 23:49 (UTC)

@archibald869 cknoblauch: I've now made an adjustment that will avoid future issues.

yochananmarqos commented on 2021-06-09 22:56 (UTC) (edited on 2021-06-09 22:56 (UTC) by yochananmarqos)

@archibald869 cknoblauch: The checksum is correct. Use a proper AUR helper and / or clear it's cache.

cknoblauch commented on 2021-06-09 19:47 (UTC)

Checksum fails for LICENSE.TXT in the latest update; it matches the sha256 from @aurelieng's comment.

@yochananmarqos, the LICENSE.TXT you mention does match the checksum in the PKGBUILD, however the path for it is different in the PKGBUILD. You should either update the checksum or change the file for the package to build correctly.

Btw I only now realized this package mixes two different sources, the package for cheat and related cheatsheets, and both have different licences (CC0 vs MIT). You might want to rename the package to cheatsheets and make it depend on cheat-bin to avoid any confusion.

archibald869 commented on 2021-06-09 19:31 (UTC) (edited on 2021-06-09 19:36 (UTC) by archibald869)

Please update the SHA256 checksum for https://raw.githubusercontent.com/cheat/cheatsheets/master/.github/LICENSE.txt. It is: a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499

muesli commented on 2020-09-14 17:23 (UTC)

Thanks for the heads up, sounds like a caching issue then. Will verify at home.

yochananmarqos commented on 2020-09-14 16:57 (UTC)

@muesil @aurelieng: The checksums are correct. You can verify it manually:

wget https://github.com/cheat/cheat/raw/4.1.0/LICENSE.txt
sha256sum LICENSE.txt
5eaa85b8023f915629de53c3604015ab5b23bed404afa9e551ab44e0bc46dde3  LICENSE.txt

muesli commented on 2020-09-14 13:29 (UTC)

@yochananmarqos See @aurelieng's comment, the LICENSE.txt has a different shasum, which currently breaks this package.

aurelieng commented on 2020-09-09 16:17 (UTC)

The sha256sum of LICENCE.txt should be updated to a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499 for the package to be built correctly.

yochananmarqos commented on 2020-07-13 21:49 (UTC)

The upstream zsh completion file conflicts with the zsh-completions package. It's now installed to /usr/share/doc/cheat/_cheat. You can copy or symlink it to a custom folder like $HOME/.local/share/zsh/site-functions/ and source it in your .zshrc.

yochananmarqos commented on 2020-04-10 00:30 (UTC)

@MagicAndWires: That sounds like way too much effort just for a clean log, so I guess we'll just leave it as is. No harm done.

MagicAndWires commented on 2020-04-10 00:26 (UTC) (edited on 2020-04-10 00:28 (UTC) by MagicAndWires)

@yochanmarqos Apologies for the many double commits, I made an incredibly dumb mistake and I've learned my shameful lesson.

From what I can tell no actual files were changed from 7849284, but should you prefer a clean log you'd have to submit a deletion request to then re-upload the package from a clean or reverted branch, as the AUR unfortunately doesn't accept force pushes. (I've got a clean branch ready, but if I were the one to submit the package whilst it's been temporarily deleted that'd make me the Maintainer).

If a cluttered log does not bother you then no action should be required as the commits should be identical in contents.

yochananmarqos commented on 2020-04-10 00:04 (UTC)

@MagicAndWires: What exactly did you just do?

yochananmarqos commented on 2020-04-08 17:29 (UTC)

I submitted a PR to update zsh-completion's version of _cheat.

tuxayo commented on 2020-04-08 16:23 (UTC)

Thanks, now I can install cheat again :D

yochananmarqos commented on 2020-04-08 15:21 (UTC)

@tuxayo: I've reverted the change. It would be more valuable to have both cheat and zsh-completions installed than one or the other.

tuxayo commented on 2020-04-08 07:33 (UTC) (edited on 2020-04-08 07:34 (UTC) by tuxayo)

@yochananmarqos

It'll have to be worked out upstream somehow. I've added zsh-completions to conflicts for now.

If I understand correctly, until this is solved upstream, one must choose:

  • have cheat and loose other stuff provided by zsh-completions
  • don't have cheat to keep all stuff from zsh-completions

yochananmarqos commented on 2020-04-08 05:46 (UTC)

@tuxayo: It'll have to be worked out upstream somehow. I've added zsh-completions to conflicts for now.

tuxayo commented on 2020-04-08 04:47 (UTC)

Following issue when upgrading to cheat-3.9.0-1

Which package should actually own that file?

:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) cheat-3.9.0-1

Total Installed Size:  8.54 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                            [###############################################################] 100%
(1/1) checking package integrity                                                                          [###############################################################] 100%
(1/1) loading package files                                                                               [###############################################################] 100%
(1/1) checking for file conflicts                                                                         [###############################################################] 100%
error: failed to commit transaction (conflicting files)
cheat: /usr/share/zsh/site-functions/_cheat exists in filesystem (owned by zsh-completions)
Errors occurred, no packages were upgraded.
Command 'sudo pacman --color=always --upgrade /home/victor/.cache/pikaur/pkg/cheat-3.9.0-1-x86_64.pkg.tar.zst' failed to execute.
Do you want to retry? [Y/n] 

yochananmarqos commented on 2020-03-31 23:36 (UTC)

@core_contingency: Ha ha, no worries. I'll remove lua, then.

core_contingency commented on 2020-03-31 23:35 (UTC)

My bad! The issue was firejail. I use firecfg, which is a script that automatically sets symlinks in /usr/local/bin to sandbox all applications firejail has profiles for. Seems like pandoc was one of those programs. After deleting the symlink for pandoc, it builds fine. Sorry for the wild goose chase!

core_contingency commented on 2020-03-31 02:00 (UTC)

@yochananmarqos: Unfortunately, that didn't work. Apparently, I already had lua installed for some other reason. Now it fails even earlier with the same error. Here is the makepkg -si logs:

https://pastebin.ubuntu.com/p/zGYbYyvqn3/

yochananmarqos commented on 2020-03-30 15:15 (UTC) (edited on 2020-03-30 16:23 (UTC) by yochananmarqos)

@core_contingency: I added lua to makedepends(). Apparently pandoc needs it for some things. It's odd it's not listed as an optional dependency.

core_contingency commented on 2020-03-29 02:35 (UTC) (edited on 2020-03-29 02:37 (UTC) by core_contingency)

Build fails currently. Here is the makepkg -si logs:

https://pastebin.ubuntu.com/p/5dp9N63MYC/

Running fully updated Arch.

yochananmarqos commented on 2020-02-01 15:42 (UTC)

@GFdevelop: Thanks, somehow I forgot that.

GFdevelop commented on 2020-01-31 19:37 (UTC)

Missing backup in the PKGBUILD https://wiki.archlinux.org/index.php/PKGBUILD#backup

yochananmarqos commented on 2020-01-27 15:59 (UTC)

@k4leg: Thanks for the tips, it's done. I deleted my previous comment, turned out I was completely wrong. I had forgotten I had initially copied the config file and cheatsheets to ~/.config/cheat/ before I included the cheatsheets in this package.

k4leg commented on 2020-01-26 18:04 (UTC) (edited on 2020-01-26 18:05 (UTC) by k4leg)

Hi! Add this patch: http://dpaste.com/3WJPFFE to avoid this error: could not locate config file.

SHA256SUM for patch: 26b8d3701655659c2ede4ab003105bf2fe72df4f69e9ec19a23a91108286b51a

And update conf.yml: https://raw.githubusercontent.com/cheat/cheat/master/configs/conf.yml

And add the following line after go clean -modcache: rm -rf ..../go

Please.

MagicAndWires commented on 2019-11-03 16:50 (UTC)

Thanks for the Co-maintainership.

I fixed some small regressions related to the GOPATH and PIE build flag, hopefully that should fix the error messages that were popping up.

roachsinai commented on 2019-04-14 09:13 (UTC)

Hi, for zsh the completion should be installed as _cheat not cheat.

ImNtReal commented on 2018-10-04 23:12 (UTC)

My understanding is that -git packages are supposed to conflict with non-git packages, but not the other way around.

dhead666 commented on 2018-10-04 20:05 (UTC) (edited on 2018-10-04 20:08 (UTC) by dhead666)

python-cheat is not the best name fot the package, it's not a python library nor a python language cheat-sheets app.
Maybe we should ask if the maintainer of the cheat aur package is willing to rename it to cheat-test?

p.s. add cheat-git and cheat-bash-git to the conflict array.

shen commented on 2017-02-16 22:41 (UTC)

A new version is available on https://github.com/chrisallenlane/cheat/releases