release: v0.4.2
Some checks failed
ci / test (push) Has been cancelled
ci / darwin-cgo-build (push) Has been cancelled

This commit is contained in:
Peter Steinberger 2025-12-31 20:04:34 +01:00
parent 3c1afc6caf
commit ac8cfe23fe
3 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Changelog
## 0.4.2 - Unreleased
## 0.4.2 - 2025-12-31
- Gmail: `thread modify` subcommand + `thread get` split (#21) — thanks @alexknowshtml.
- Auth: refreshed account manager + success UI (#20) — thanks @salmonumbrella.

View File

@ -47,6 +47,7 @@ func TestParseGoogleOAuthClientJSON(t *testing.T) {
func TestClientCredentials_Roundtrip(t *testing.T) {
home := t.TempDir()
t.Setenv("HOME", home)
t.Setenv("XDG_CONFIG_HOME", filepath.Join(home, "xdg-config"))
in := ClientCredentials{ClientID: "id", ClientSecret: "secret"}
if err := WriteClientCredentials(in); err != nil {
@ -79,6 +80,7 @@ func TestClientCredentials_Roundtrip(t *testing.T) {
func TestReadClientCredentials_Errors(t *testing.T) {
home := t.TempDir()
t.Setenv("HOME", home)
t.Setenv("XDG_CONFIG_HOME", filepath.Join(home, "xdg-config"))
_, err := ReadClientCredentials()
if err == nil {

View File

@ -9,6 +9,7 @@ import (
func TestPaths_CreateDirs(t *testing.T) {
home := t.TempDir()
t.Setenv("HOME", home)
t.Setenv("XDG_CONFIG_HOME", filepath.Join(home, "xdg-config"))
dir, err := EnsureDir()
if err != nil {