-
Notifications
You must be signed in to change notification settings - Fork 2
Traho
Traho (originally Solbump) is a tool to automatically upgrade eopkg
YAML-formatted source files to latest releases.
Based on the amount of defined (and pluggable) providers, it tries to recognize the format of the tarballs or archives defined as source files from the YAML file and find a matching provider. Then it's able to query for a more updated release and, if so, it fetches the asset, calculates the hashsum and update the original package.yml
coherently.
Before starting using the tool, further actions need to be taken, in order to access all its capabilities. In fact, few providers could be in the need of API tokens or specific configurations. So create the configuration file at ~/.config/traho
and, depending on your needs, fill it with data you own:
# To obtain the token, go to:
# https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line#creating-a-token
# Traho does not require any scope to be enabled.
github:
api: habmfnlzrwmxuopmjganlqfpmccouxieijlouxcl
# To obtain the token, go to:
# https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
# Traho requires only the API access scope enablement.
gitlab:
api: hmlhnbzndrogcifs-akb
domains:
- name: gitlab.xfce.org
api: zzDkdnNCq9JaX5UfZJZC
Using the tool is pretty straightforward:
traho package1.yml package2/package.yml
Installation from repositories is only available for Solus Project users which have enabled Theca repository:
eopkg it -y traho
go get github.com/streambinder/traho