datadrake / cuppa Goto Github PK
View Code? Open in Web Editor NEWComprehensive Upstream Provider Polling Assistant
License: Apache License 2.0
Comprehensive Upstream Provider Polling Assistant
License: Apache License 2.0
For the past few weeks GitHub links have not been working with cuppa.
An example command and output:
cuppa q https://github.com/zsh-users/zsh-autosuggestions/archive/v0.5.0.tar.gz
๐ฑ ๎ฐ 10:47:05 ๎ฒ FATAL ๎ฒ No release found.
/bin/sh: 4: pushd: not found
error: pathspec 'tags/v0.4.1' did not match any file(s) known to git.
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cuppa/config/config.go:20:2: cannot find package "github.com/BurntSushi/toml" in any of:
/usr/lib/go-1.10/src/github.com/BurntSushi/toml (from $GOROOT)
/mnt/data/Sources/cuppa/build/src/github.com/BurntSushi/toml (from $GOPATH)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cuppa/cli/latest.go:20:2: cannot find package "github.com/DataDrake/cli-ng/cmd" in any of:
/usr/lib/go-1.10/src/github.com/DataDrake/cli-ng/cmd (from $GOROOT)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cli-ng/cmd (from $GOPATH)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cuppa/cli/root.go:21:2: cannot find package "github.com/DataDrake/waterlog" in any of:
/usr/lib/go-1.10/src/github.com/DataDrake/waterlog (from $GOROOT)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/waterlog (from $GOPATH)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cuppa/cli/quick.go:23:2: cannot find package "github.com/DataDrake/waterlog/format" in any of:
/usr/lib/go-1.10/src/github.com/DataDrake/waterlog/format (from $GOROOT)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/waterlog/format (from $GOPATH)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/cuppa/cli/root.go:23:2: cannot find package "github.com/DataDrake/waterlog/level" in any of:
/usr/lib/go-1.10/src/github.com/DataDrake/waterlog/level (from $GOROOT)
/mnt/data/Sources/cuppa/build/src/github.com/DataDrake/waterlog/level (from $GOPATH)
/bin/sh: 7: popd: not found
Makefile:51: recipe for target 'setup-deps' failed
There is a listing error when using GNU. The list of release is making by using the order the FTP but the order is false because the FTP sort filenames by characters and not by version so the version 1.9 is greater than 1.20 but this comparison is false for cuppa who need to have 1.9 then 1.20.
Example cuppa latest https://ftp.gnu.org/gnu/wget/wget-1.20.tar.gz:
Give this :
Name : wget
Version : 1.9.1
Location : https://mirrors.rit.edu/gnu/wget/wget-1.9.1.tar.gz
Published : 2003-11-14T00:00:00Z
Instead of:
Name : wget
Version : 1.20.1
Location : https://mirrors.rit.edu/gnu/wget/wget-1.20.1.tar.lz
Published : 2018-12-26T20:13:00Z
I think you should sort the list of release by date to fix this issue (and as a precaution do it for all other providers to avoid future problems).
It would be great if a package.yml file could just be passed as a parameter to cuppa and it would automatically use the first source file to search for new versions.
Both cuppa quick
and cuppa latest
find the same older releases.
This is the latest timewarrior release โ https://github.com/GothenburgBitFactory/timewarrior/archive/v1.1.1.tar.gz
. Post111ToMaster seems to be the first release from Feb 4, 2018, the same day 1.1.1 was released.
Here, https://github.com/ansible/ansible/archive/v2.7.5.tar.gz
is the last one. What cuppa found is much older โ https://github.com/ansible/ansible/releases?after=v2.1.4.0-0.2.rc2 but it's under /releases/latest. Coincidentally, I found that the official Ansible releases can be found here โ https://releases.ansible.com/ansible/, but cuppa doesn't work on https://releases.ansible.com/ansible/ansible-2.7.5.tar.gz
Not critical, but I was just trying to build Cuppa on macOS and get an error:
$ make
Makefile:19: *** missing separator. Stop.
The default make version in macOS 10.12 Sierra is GNU Make 3.81
. I installed a newer make from Homebrew and the project compiles fine with the spaces, but it might be worth mentioning in the README.md that a newer GNU Make is needed, or switching to using tabs?
I'd like to use cuppa to help track versions for some PKGBUILD files but when I run cuppa releases https://github.com/neovim/neovim
for example none of the providers return a match and no releases are found.
It's not very clear how the program is intended to be used. Am I just formatting the command wrong, is it supposed to be run against build files, if so would changes be required for different packaging formats, etc.
I found it a bit tricky to configure and run cuppa. It would be nice if you could add a few examples to the readme to get users started:
make
)config/config.go
)Also, is it possible to have a sort of configuration where you list the projects and versions you're using, or are you supposed to run cuppa in a loop in a shell script? For example, something like this in the ~/.config/cuppa
config file:
[projects]
restic 0.9.2 https://github.com/restic/restic/releases/download/v0.9.2/restic-0.9.2.tar.gz
There are two references to rubygems in the gnome provider in providers/gnome/provider.go
Shouldn't they be Gnome references?
Tested cuppa, version: 1.0.4 on some cpan links.
Returns: code1
cuppa l https://cpan.metacpan.org/authors/id/R/RG/RGARCIA/Sub-Identify-0.14.tar.gz
Returns:
โฎ ๎ฐ CPAN checking for match:
๐ฒ ๎ฐ Could not get latest Sub, code: 1
Returns first result
cuppa l https://cpan.metacpan.org/authors/id/D/DO/DOY/Package-Stash-0.37.tar.gz
returns
Name : Package
Version : 0.26
Location : https://cpan.metacpan.org/authors/id/I/IN/INGY/Package-0.26.tar.gz
Seems to grab the first result 'Package-...' it can find.
Should return:
Name : Package-Stash
Version : 0.37
Location : https://cpan.metacpan.org/authors/id/D/DO/DOY/Package-Stash-0.37.tar.gz
Same behavior for:
'https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Test-Requires-0.10.tar.gz'
'https://cpan.metacpan.org/authors/id/E/ET/ETHER/namespace-autoclean-0.28.tar.gz'
'https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-1.22.tar.gz'
As promised, here's some examples from the report of some odd results. Tbh, they might be issues with how the authors mark the releases, but are worth a look.
ibus-libzhuyin 1.7.10 https://github.com/epico/ibus-libzhuyin/archive/.tar.gz
mate-menu 18.04.3 16.10.1 https://github.com/ubuntu-mate/mate-menu/archive/16.10.1.tar.gz
naev 0.7.0 NAEV-0.3.8 https://github.com/naev/naev/archive/NAEV-0.3.8.tar.gz
flare-engine 1.06 1.0 https://github.com/clintbellanger/flare-engine/archive/v1.0.tar.gz
neovim-qt 0.2.8 https://github.com/equalsraf/neovim-qt/archive/staging.tar.gz
numix-icon-theme 17.12.25 https://github.com/numixproject/numix-icon-theme/archive/.tar.gz
numix-icon-theme-circle 18.04.04 https://github.com/numixproject/numix-icon-theme-circle/archive/.tar.gz
numix-icon-theme-square 18.04.04 https://github.com/numixproject/numix-icon-theme-square/archive/.tar.gz
Trying to package it for alpine using upstream instructions leads to.
โฎ ๎ฐ 16:56:27 ๎ฒ BUILD ๎ฒ
cuppa.go:20:2: cannot find package "github.com/DataDrake/cuppa/cli" in any of:
/usr/lib/go/src/github.com/DataDrake/cuppa/cli (from $GOROOT)
/home/impreza/usr/src/aports/testing/cuppa/src/src/github.com/DataDrake/cuppa/cli (from $GOPATH)
make: *** [Makefile:29: build] Error 1
>>> ERROR: cuppa: build failed
I'm not sure if you want such suggestions here. But if so, I would like to point out the "Free Software Directory" as an important one. In particular packages under gnu.org/software. Feel free to add to this list if deemed appropriate.
hey @DataDrake ! I'm trying this for the first time and it's a great idea, but I have a quick question. The responses that I get are basically 404 when I don't have an access token, even for public repos.
2020/10/03 10:17:44 Unable to find cuppa https://github.com/DataDrake/cuppa/archive/v1.1.0.tar.gz
but I've used the GitHub API before, and although the limit is lower, it should work without a token. What am I doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.