diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b3cff..9f4252f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/internal/config/credentials_test.go b/internal/config/credentials_test.go index 56f11f9..378ccce 100644 --- a/internal/config/credentials_test.go +++ b/internal/config/credentials_test.go @@ -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 { diff --git a/internal/config/paths_test.go b/internal/config/paths_test.go index 5b2b85f..07689e8 100644 --- a/internal/config/paths_test.go +++ b/internal/config/paths_test.go @@ -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 {