willow/README.md

200 lines
7.3 KiB
Markdown
Raw Normal View History

2023-09-21 18:03:21 +00:00
<!--
SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
SPDX-License-Identifier: CC0-1.0
-->
2023-09-22 02:26:56 +00:00
# Willow
2023-09-21 18:03:21 +00:00
[![Go report card status][goreportcard-badge]][goreportcard]
[![REUSE status][reuse-shield]][reuse]
[![Donate with fosspay][fosspay-shield]][fosspay]
2023-09-24 21:34:48 +00:00
_Forge-agnostic software release tracker_
2023-09-21 18:03:21 +00:00
2024-02-24 16:46:18 +00:00
![screenshot of willow's current web UI](.files/2024-02-24.png)
2023-09-24 20:52:42 +00:00
2024-03-05 19:55:41 +00:00
_This UI is Amolith's attempt at a balance between simple, pleasant, and
functional. Amolith is not a UX professional and would **very** much welcome
input from someone more knowledgeable!_
2023-09-24 20:52:42 +00:00
2023-09-22 02:26:56 +00:00
## What is it?
2024-02-29 21:22:57 +00:00
_If you'd rather watch a short video, Amolith gave a 5-minute [lightning talk on
Willow] at the 2023 Ubuntu Summit._
2023-11-28 17:03:51 +00:00
[lightning talk on Willow]: https://youtu.be/XIGxKyekvBQ?t=29900
2024-02-29 21:25:10 +00:00
Willow helps developers, sysadmins, and homelabbers keep up with software
2024-02-29 21:22:57 +00:00
releases across arbitrary forge platforms, including full-featured forges like
2024-02-29 21:38:04 +00:00
GitHub, GitLab, or [Forgejo] as well as more minimal options like [cgit] or
2024-02-29 21:22:57 +00:00
[stagit].
[Forgejo]: https://forgejo.org/
[cgit]: https://git.zx2c4.com/cgit/
[stagit]: https://codemadness.org/stagit.html
2024-02-29 21:25:10 +00:00
It exists because decentralisation, as wonderful as it is, does have some pain
points. One piece of software is on GitHub, another piece is on GitLab, one on
Bitbucket, a fourth on [SourceHut], a fifth on the developer's self-hosted
2024-03-05 19:55:41 +00:00
Forgejo instance.
2024-02-29 21:22:57 +00:00
[SourceHut]: https://sourcehut.org/
2024-03-05 19:55:41 +00:00
The capabilities of each platform can also differ, further complicating the
space. For example, Forgejo and GitHub have APIs and RSS release feeds,
SourceHut has an API and RSS feeds that notify you of _all_ activity in the
repo, GitLab only has an API, and there's no standard for discovering the
capabilities of arbitrary git frontends like [legit].
[legit]: https://github.com/icyphox/legit
And _then_ you have different pieces of information in different places; some
developers might publish release announcements on their personal blog and some
projects might release security advisories on an external platform prior to
publishing a release.
All this important info is scattered all over the internet. Willow brings some
order to that chaos by supporting both RSS and one of the _very_ few things all
the forges and frontends have in common: their **V**ersion **C**ontrol
2024-02-29 21:28:41 +00:00
**S**ystem. At the moment, [Git] is the _only_ supported VCS, but we're
2024-02-29 21:29:40 +00:00
definitely interested in adding support for [Pijul], [Fossil], [Mercurial], and
2024-02-29 21:28:41 +00:00
potentially others.
2024-02-29 21:22:57 +00:00
[Git]: https://git-scm.com/
[Pijul]: https://pijul.org/
[Fossil]: https://www.fossil-scm.org/
[Mercurial]: https://www.mercurial-scm.org/
2024-03-05 19:55:41 +00:00
Amolith (the creator) has recorded some of his other ideas, thoughts, and plans
in [his wiki].
2023-09-22 02:26:56 +00:00
2024-02-29 21:29:40 +00:00
[his wiki]: https://wiki.secluded.site/hypha/willow
2023-09-22 02:26:56 +00:00
## Installation and use
2024-03-05 19:55:41 +00:00
**Disclaimers:**
1. Prebuilt binaries will be available with the [v0.0.1] release, greatly
simplifying installation.
2. We consider the project _alpha-quality_. There will be bugs.
3. Amolith has tried to make the web UI accessible, but is unsure of its current
usability.
4. The app is not localised yet and English is the only available language.
5. Help with any/all of the above is most welcome!
2023-11-22 20:34:50 +00:00
2023-11-22 20:35:21 +00:00
[v0.0.1]: https://todo.sr.ht/~amolith/willow?search=status%3Aopen%20label%3A%22v0.0.1%22
2024-03-05 19:55:41 +00:00
[communication platforms]: #contributing
### Installation
This assumes Willow will run on an always-on server, like a VPS.
* Clone the repo with `git clone https://git.sr.ht/~amolith/willow`
* Enter the repo's folder with `cd willow`
2024-03-05 19:55:41 +00:00
* Build the binary with `CGO_ENABLED=0 go build -ldflags="-s -w" -o willow
./cmd`
* Transfer the binary to the server however you like
* Execute the binary with `./willow`
* Edit the config with `vim config.toml`
* Daemonise Willow using systemd or OpenRC or whatever you prefer
2024-03-05 19:55:41 +00:00
* Reverse-proxy the web UI (defaults to `localhost:1313`) with Caddy or NGINX or
whatever you prefer
2024-03-05 19:55:41 +00:00
### Use
* Create a user with `./willow -a <username>`
2024-03-05 19:55:41 +00:00
* Open the web UI (defaults to `localhost:1313`, but [installation] had you put
a proxy in front)
* Click `Track new project`
* Fill out the form and press `Next`
* Indicate which version you're currently on and press `Track releases`
2024-03-05 19:55:41 +00:00
* You're now tracking that project's releases!
[installation]: #installation
If you no longer use that project, click the `Delete?` link to remove it, and,
if applicable, Willow's copy of its repo.
If you're no longer running the version Willow says you've selected, click the
`Modify?` link to select a different version.
If there are projects where your selected version does _not_ match what Willow
thinks is latest, they'll show up at the top under the **Outdated projects**
heading and have a link at the bottom of the card to `View release notes`.
Clicking that link populates the right column with those release notes.
2023-11-22 20:34:50 +00:00
2024-03-05 19:55:41 +00:00
If there are projects where your selected version _does_ match what Willow
thinks is latest, they'll show up at the bottom under the **Up-to-date
projects** heading.
2023-09-21 18:03:21 +00:00
2023-09-24 21:32:51 +00:00
## Contributing
2023-09-21 18:03:21 +00:00
2023-09-24 21:32:51 +00:00
Contributions are very much welcome! Please take a look at the [ticket
tracker][todo] and see if there's anything you're interested in working on. If
there's specific functionality you'd like to see implemented and it's not
2024-02-29 23:06:25 +00:00
mentioned in the ticket tracker, please describe it through one of the platforms
below so we can discuss its inclusion. If we don't feel like it fits with
2024-02-29 21:25:10 +00:00
Willow's goals, you're encouraged to fork the project and make whatever changes
you like!
2023-09-24 21:32:51 +00:00
2024-02-29 21:22:57 +00:00
Questions, comments, and patches can always go to the [mailing list][email], but
there's also an [IRC channel][irc] and an [XMPP MUC][xmpp] for real-time
interactions.
2023-09-21 18:03:21 +00:00
2023-09-24 21:32:51 +00:00
- Email: [~amolith/willow@lists.sr.ht][email]
- IRC: [irc.libera.chat/#willow][irc]
- XMPP: [willow@muc.secluded.site][xmpp]
[email]: mailto:~amolith/willow@lists.sr.ht
[irc]: ircs://irc.libera.chat/#willow
2023-09-24 21:32:51 +00:00
[xmpp]: xmpp:willow@muc.secluded.site?join
[todo]: https://todo.sr.ht/~amolith/willow
2023-09-21 18:03:21 +00:00
_If you haven't used mailing lists before, please take a look at [SourceHut's
documentation](https://man.sr.ht/lists.sr.ht/), especially the etiquette
section._
### Configuring git...
…for <code>git send-email</code>
``` shell
git config sendemail.to "~amolith/willow@lists.sr.ht"
git config format.subjectPrefix "PATCH willow"
git send-email [HASH]
```
…for signing the [DCO]
``` shell
git config format.signOff yes
```
[DCO]: https://developercertificate.org/
2023-09-24 21:32:51 +00:00
### Required tools
- [Go](https://go.dev/)
- [gofumpt](https://github.com/mvdan/gofumpt)
- Stricter formatting rules than the default `go fmt`
- [golangci-lint](https://golangci-lint.run/)
- Aggregates various preinstalled Go linters, runs them in parallel, and makes
heavy use of the Go build cache
- [Staticcheck](https://staticcheck.dev/)
- Uses static analysis to find bugs and performance issues, offer
simplifications, and enforce style rules
### Suggested tools
- [just](https://github.com/casey/just)
- Command runner to simplify use of the required tools
2023-10-28 17:05:25 +00:00
- [air](https://github.com/cosmtrek/air)
- Watches source files and rebuilds/executes the project when sources change
2023-09-24 21:32:51 +00:00
2023-09-22 02:26:56 +00:00
[goreportcard-badge]: https://goreportcard.com/badge/git.sr.ht/~amolith/willow
[goreportcard]: https://goreportcard.com/report/git.sr.ht/~amolith/willow
[reuse]: https://api.reuse.software/info/git.sr.ht/~amolith/willow
[reuse-shield]: https://shields.io/reuse/compliance/git.sr.ht/~amolith/willow
2023-09-21 18:03:21 +00:00
[fosspay]: https://secluded.site/donate/
[fosspay-shield]: https://shields.io/badge/donate-fosspay-yellow