Package Details: exercism-bin 3.0.13-2

Git Clone URL: https://aur.archlinux.org/exercism-bin.git (read-only, click to copy)
Package Base: exercism-bin
Description: Command line client for exercism.io
Upstream URL: https://github.com/exercism/cli
Licenses: MIT
Conflicts: exercism
Replaces: exercism-cli
Submitter: linduxed
Maintainer: linduxed
Last Packager: linduxed
Votes: 74
Popularity: 0.019254
First Submitted: 2019-07-28 13:36 (UTC)
Last Updated: 2019-12-25 17:45 (UTC)

Latest Comments

linduxed commented on 2019-12-25 18:36 (UTC)

@berquist Implemented. Thanks for the recommendation!

linduxed commented on 2019-12-25 17:39 (UTC) (edited on 2019-12-25 17:39 (UTC) by linduxed)

@berquist If that's the correct syntax, then yes, it should. This package used to be exercism-cli and changed to exercism-bin a commits ago.

berquist commented on 2019-12-24 14:17 (UTC)

Should the PKGBUILD have replaces=('exercism-cli')?

patrick96 commented on 2019-11-28 09:58 (UTC)

@linduxed Awesome :)

linduxed commented on 2019-11-28 02:53 (UTC)

Updated the package to 3.0.13. Thank you @patrick96 for your contribution!

patrick96 commented on 2019-11-20 09:28 (UTC)

Sure, no worries!

linduxed commented on 2019-11-20 09:11 (UTC)

@patrick96 Thank you for your work!

I can't have a look at this right away, but I'll get around to it either tomorrow evening or during the weekend.

patrick96 commented on 2019-11-20 07:39 (UTC) (edited on 2019-11-20 07:43 (UTC) by patrick96)

Hi. I updated the PKGBUILD for this to 3.0.13 and I also switched over to the new release tarball names. You can find it here: https://gist.github.com/patrick96/80f7e9150b8be4ab524330a0763d6dc3

@linduxed feel free to pull this in ;)

The tarball also provides the license file and shell completion so I use it directly from there. And I also copy the zsh and bash completion to the proper location for completion to work out of the box.

I don't know where I should put the fish completion because I never used it so I just didn't include it.

EDIT: I now also included the fish completions after researching where to put them

NobbZ commented on 2019-09-12 07:54 (UTC)

Oh, yes, sorry, forgot that this is a binary package. Then patching is hard.

linduxed commented on 2019-09-12 01:43 (UTC)

@NobbZ: my suspicion is that this version of the package (binary that gets extracted from an archive) can not be patched. The source version of this package probably could be patched, but I have not considered what that would look like.

Regarding the upcoming changes to the package itself: I have not looked at this closely yet, and therefore don't know how to best handle this. I hope to take a look at this during one of the upcoming weekends.

NobbZ commented on 2019-09-07 09:30 (UTC)

Is there a way to provide a patch during building the package that will disable the upgrade subcommand?

Perhaps leaving the update check in place and replacing the upgrade process of downloading and replacing the binary with printing out something like "A new version has been released, please check https://aur.archlinux.org/packages/exercism-bin for an updated package".

Please also be aware of the fact, that the next release of exercism will probably break this PKGBUILD, as the convention to name the tarballs is going to be changed in the process of enabling automatic releases.

Please see https://github.com/exercism/cli/issues/700#issuecomment-529013140 for details.

linduxed commented on 2019-07-28 14:50 (UTC)

It turns out that the zsh completion sourcing problem that I had was caused by me sourcing the files in a faulty manner and a recent update of zsh making this faulty method no longer work.

Problem was solely on my end.

linduxed commented on 2019-07-28 13:41 (UTC)

New exercism-bin package is up and I have submitted the request to merge this package into the -bin package.

linduxed commented on 2019-07-22 10:24 (UTC)

@Nobbz Regarding completion:

  1. Since the PKGBUILD pulls the completion files according to the pkgver, I'm guessing that it'll work out the same.
  2. Do you think you one could tweak the PKGBUILD to make the problem with the completion file for zsh go away? I don't fully understand whether this situation necessitates patching the zsh file or not.

taekyung commented on 2019-07-22 07:43 (UTC)

@linduxed, @NobbZ

Maybe it is a better idea to make 'merge request' rather than 'deletion request' on this package after creating a new one, because it that way the votes and popularity will be transferred as well.

NobbZ commented on 2019-07-22 05:58 (UTC)

sounds like a good idea, but unfortunately I don't know the exact procedure of how to do this. There does not seem to be some menu option in the maintainer interface.

Yes, as far as I understand the procedure, it would be creating a new one with a different name, pushing to that with slightly altered PKGBUILD (name) and then deleting this one.

To avoid friction, it might be a good idea to use provides=exercism-cli in the new one.

NobbZ commented on 2019-07-22 05:51 (UTC) (edited on 2019-07-22 05:55 (UTC) by NobbZ)

The design of the zsh completion has been changed, but never really was tested…

I'm not sure if this was before or after 3.0.11.

The old version of the completion was written in a way that sourceing was necessary, the new version can benefit from autoloading and discovery.

The file needs to be renamend to _exercism and copied into the $fpath.

Also, please do not download completion files from master, all three completion files (bash, fish, and zsh) are available in the release tarball.

linduxed commented on 2019-07-21 23:36 (UTC) (edited on 2019-07-22 10:15 (UTC) by linduxed)

The latest version seems to result in the following error upon loading:

/usr/share/exercism-cli/completion/exercism_completion.zsh:local:6: options: can't change type of a special parameter

Not sure if this happens to everyone or just me.

linduxed commented on 2019-07-21 20:42 (UTC)

Package has now been updated to 3.0.12.

@swalladge: This sounds like a good idea, but unfortunately I don't know the exact procedure of how to do this. There does not seem to be some menu option in the maintainer interface.

Maybe one needs to remove the package and resubmit it with a different name? This thread seems to suggest that to be the case, but it's quite old:

https://bbs.archlinux.org/viewtopic.php?id=76460

swalladge commented on 2019-06-05 02:49 (UTC)

Can this be renamed to exercism-bin, since this uses the prebuilt binaries. There is another aur package (exercism) <https://aur.archlinux.org/packages/exercism/> that provides the same software but builds from source.

linduxed commented on 2018-11-11 23:46 (UTC)

@pablox I applied your patch, and it seems like the way the two completion files are currently written make them not work automatically, as one would have hoped.

I don't know what the problem is with bash (I just tried tab-completing and it didn't work), but with zsh I'm guessing the slightly different way of organizing the file compared to the rest of the files in "/usr/share/zsh/site-functions" makes it not load it. One of the differences is the lack of starting the file with "#compdef exercism".

pablox commented on 2018-11-09 22:19 (UTC) (edited on 2018-11-09 22:20 (UTC) by pablox)

I believe the zsh completion should be installed on:

/usr/share/zsh/site-functions/_exercism

and bash on:

/usr/share/bash-completion/completions/exercism

That way, completions works out of the box.

Here's the file to the patch: https://gist.github.com/pablox-cl/a79d3d4d7592f867eac0098d70f5e8e9/raw/a058693de80b33edc4ae3eb66c1b79f01b6b170b/exercism-cli-better-completion

linduxed commented on 2018-09-03 10:52 (UTC)

Package has been updated to 3.0.9.

Thank you to Fabrizio Cirelli for reminding me to update, and providing me with the PKGBUILD!

Tha-Fox commented on 2018-07-30 18:41 (UTC)

Thank you for the update! This seems to work fine!

linduxed commented on 2018-07-30 15:49 (UTC)

Package has been updated to 3.0.6.

Sorry about the delay, real life stuff got in the way!

Thank you to @vitaliel on Github for providing me with the updated PKGBUILD and SRCINFO for this version.

NobbZ commented on 2018-07-18 08:53 (UTC)

Please be aware of the fact, that the completions haven't been updated since v2.x. So they create false completions, that might not work with the 3.x set of the CLI.

I'm not sure how this will be dealt with upstream.

linduxed commented on 2018-07-18 08:47 (UTC)

@hugueschabot: Thank you for notifying me of this! I hope to have the time to update the package during this weekend to the latest version.

hugueschabot commented on 2018-07-18 01:15 (UTC)

@linduxed The shell completion scripts are now included in the tarball. There is no need to download them from http://cli.exercism.io/ anymore.

kiiruchu commented on 2018-04-06 10:41 (UTC)

@linduxed Deleting ~/.cache/pacaur/exercism-cli/ did the trick, thanks!

linduxed commented on 2018-04-05 18:41 (UTC)

Could it maybe be a similar problem to that which @antoyo resolved in his comment from 2016-08-23 13:07?

idabmat commented on 2018-04-05 10:09 (UTC)

@linduxed Thank you for maintaining this. The bash and zsh completion files are not passing the validity checks when I try to update the package via trizen.

linduxed commented on 2018-04-02 11:28 (UTC)

@wezm: Thank you for pointing this out!

The package has been updated.

wezm commented on 2018-03-27 09:24 (UTC)

Looks like the completion files have moved (see http://cli.exercism.io/scripts/). The new URLs are:

http://cli.exercism.io/shell/exercism_completion.bash http://cli.exercism.io/shell/exercism_completion.zsh

linduxed commented on 2018-03-03 20:12 (UTC)

Completion files have now been included in the package. Thanks for the suggestion!

As for renaming the package: thanks for pointing this out, good recommendation. I won't be able to get to this right now, however.

rpodgorny commented on 2017-12-21 13:29 (UTC)

...is this a binary (non-compiled) package? if so, it's name should end in "-bin" suffix.

kbabioch commented on 2017-11-12 14:49 (UTC)

Could you please provide the Bash completion as described here: http://exercism.io/clients/cli/linux#setting-up-exercism-cli-completion-optional

linduxed commented on 2017-10-08 15:06 (UTC)

Package updated to v2.4.1. Thanks for flagging it!

ankitrgadiya commented on 2017-10-05 16:54 (UTC)

Hey, I updated the version. https://github.com/ankitrgadiya/arch/tree/master/exercism-cli

linduxed commented on 2017-06-09 19:08 (UTC)

I just tried reinstalling the package and it works for me without any issues. I'm guessing it's something on your end.

hueftl commented on 2017-06-02 10:11 (UTC)

I can't install the package. It says License failed. Do I have something configured wrong, or is this an issue?

linduxed commented on 2017-04-02 08:08 (UTC)

Package updated to v2.4.0. Thank you for the helpful diff!

crabvk commented on 2017-03-29 13:57 (UTC) (edited on 2017-03-29 13:57 (UTC) by crabvk)

Update to 2.4.0 $ git clone https://aur.archlinux.org/exercism-cli.git $ cd exercism-cli/ $ curl 'https://friendpaste.com/20wv25hFJ2by4Y5vFvZMUB/original?rev=616438373064' | git apply

linduxed commented on 2016-09-15 21:04 (UTC)

Cacheability fixed.

linduxed commented on 2016-08-24 11:34 (UTC)

@antoyo: Good thing you figured it out! @eigengrau: Thanks for the information!

antoyo commented on 2016-08-23 13:07 (UTC)

@linduxed I deleted the cached files in the ~/.cache/pacaur directory and the package installed correctly. Thanks.

eigengrau commented on 2016-08-22 07:07 (UTC) (edited on 2016-08-22 07:07 (UTC) by eigengrau)

Hello linduxed. The checksum failing isn’t related to AUR helpers. makepkg supports caching all source files, which is why all sources specified within the PKGBUILD must have unique names. Since the exercism tarballs don’t include a version string, you must set the file name manually within the PKGBUILD, like this: source=(exercism-linux-$pkgver.tgz::https://example.com/exercism-linux.tgz)

linduxed commented on 2016-08-22 00:46 (UTC)

I just built the package from scratch on 64-bit and it finished without issues. Also, I tried to download the sources and manually checked the md5sums again: they seem to be correct. I think you might be experiencing a similar issue as vitoreiji once had, where his AUR helper messed something up.

antoyo commented on 2016-08-21 22:06 (UTC)

Hello. The new package cannot be installed. I get the following error: "failed to verify exercism-cli integrity" The md5sum for exercism-linux-64bit.tgz seems wrong. Thanks to fix this issue.

linduxed commented on 2016-08-21 13:55 (UTC)

Package updated to v2.3.0.

linduxed commented on 2016-06-05 12:23 (UTC)

Package updated to v2.2.6.

linduxed commented on 2016-03-05 15:34 (UTC)

Package updated to v2.2.4.

cscorley commented on 2015-12-02 04:26 (UTC)

It seems that the metadata on this package is out-of-date. The PKGBUILD does contain instructions for downloading and installing the latest (currently 2.2.1), while the sources listed on the web are incorrect.

commented on 2015-12-01 01:46 (UTC)

Installing doesn't seem to work: ``` ~ ❯❯❯ pacaur -S exercism-cli :: Package(s) exercism-cli not found in repositories, trying AUR... :: resolving dependencies... :: looking for inter-conflicts... :: exercism-cli-v2.2.0-1 has been flagged out of date on 2015-10-16 ... ==> Finished making: exercism-cli v2.2.1-1 (Tue Dec 1 12:44:51 AEDT 2015) ==> Cleaning up... :: Installing exercism-cli package(s)... ~ ❯❯❯ pacman -Qs exercism ~ ❯❯❯ ``` I'm afraid I can't contribute to figuring out why this is happening, but happy to post output for anything that folks suggest.

linduxed commented on 2015-04-06 17:19 (UTC)

Updated to v2.0.2.

Melon_Bread commented on 2015-04-03 16:55 (UTC)

v2.0.2 Was released a couple days ago https://github.com/exercism/cli/releases/tag/v2.0.2

linduxed commented on 2015-03-10 14:00 (UTC)

Updated to v2.0.0.

vitoreiji commented on 2015-02-04 14:15 (UTC)

You're right, it seems to have been a problem with my aur helper. Sorry for the noise.

linduxed commented on 2015-02-03 18:05 (UTC)

I just tried downloading the 64-bit tarball and ran `md5sum` on it; I'm getting the same checksum on that file as the PKGBUILD checks for. I don't know what could be causing your problem, but it seems to me that everything is in order.

vitoreiji commented on 2015-02-03 17:57 (UTC)

The hashsums for 64bit are not passing, please update.

linduxed commented on 2015-01-19 01:46 (UTC)

Updated. Thanks for the PKGBUILD!

Fryie commented on 2015-01-19 00:35 (UTC)

Please consider updating the PKGBUILD: https://gist.github.com/Fryie/7a327519013c131e69c5

linduxed commented on 2014-12-12 18:54 (UTC)

I just downloaded the tarball and got 4c8de4094906f8da2832d65f0472c532. Are you sure you downloaded the tarball which the link under "Sources" points to?

vitoreiji commented on 2014-12-12 18:51 (UTC)

Hi, the md5sum for exercism-linux-64bit.tgz does not match, it should be 2e53bda8bec162215aeba4634bfa3bb6. Thanks!

JesseSherlock commented on 2014-10-26 01:04 (UTC)

Disowning, turns out I'm not a fan of anything about exercism.io once I started using it.

JesseSherlock commented on 2014-10-08 21:30 (UTC)

Adopted and updated to v1.7.5 Please flag if I let it fall out of date, I likely won't be pinged if a new version comes out. Any tips on dealing with AURINFO, etc with multi arch packages is appreciated too. i686 is in the PKGBUILD but x86_64 is the default, so the tools all use that arch.

jboy commented on 2014-09-23 14:34 (UTC)

brought up to date. will disown again.