From 13272b89c8e343f53f0633fd057d7a0054113524 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Feb 2026 23:30:43 +0200 Subject: Bump version to v0.5.1, change default data_dir to ~/git/foostoredb Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 2 +- internal/config/config.go | 2 +- internal/config/config_test.go | 4 ++-- internal/version/version.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8304a66..8a36f8d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -38,7 +38,7 @@ Table-driven unit tests exist for all internal packages. ## Configuration Config is read from `~/.config/foostore.json` at startup (merged over defaults). Key fields: -- `data_dir`: Git repo where encrypted `.index` / `.data` file pairs are stored (default: `~/git/foostore-data`) +- `data_dir`: Git repo where encrypted `.index` / `.data` file pairs are stored (default: `~/git/foostoredb`) - `key_file`: Path to the raw encryption key file (default: `~/.foostore.key`) - `export_dir`: Temporary directory for decrypted exports (default: `~/.foostore-export`) - `edit_cmd`: Editor used by the `edit` command (default: `$EDITOR`, falling back to `vi`) diff --git a/internal/config/config.go b/internal/config/config.go index 2f7871e..b9ae6c2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -46,7 +46,7 @@ func defaultConfig() Config { } return Config{ - DataDir: filepath.Join(home, "git", "foostore-data"), + DataDir: filepath.Join(home, "git", "foostoredb"), ExportDir: filepath.Join(home, ".foostore-export"), KeyFile: filepath.Join(home, ".foostore.key"), KeyLength: 32, diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 4ad8312..96b6a9d 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -78,7 +78,7 @@ func TestLoad_defaults(t *testing.T) { cfg := Load() cases := []struct{ name, got, want string }{ - {"DataDir", cfg.DataDir, filepath.Join(dir, "git", "foostore-data")}, + {"DataDir", cfg.DataDir, filepath.Join(dir, "git", "foostoredb")}, {"ExportDir", cfg.ExportDir, filepath.Join(dir, ".foostore-export")}, {"KeyFile", cfg.KeyFile, filepath.Join(dir, ".foostore.key")}, {"EncAlg", cfg.EncAlg, "AES-256-CBC"}, @@ -145,7 +145,7 @@ func TestLoad_override(t *testing.T) { if cfg.EncAlg != "AES-256-CBC" { t.Errorf("EncAlg = %q; want AES-256-CBC", cfg.EncAlg) } - if cfg.DataDir != filepath.Join(dir, "git", "foostore-data") { + if cfg.DataDir != filepath.Join(dir, "git", "foostoredb") { t.Errorf("DataDir = %q; want default", cfg.DataDir) } } diff --git a/internal/version/version.go b/internal/version/version.go index 641e6f0..4a3c9d9 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -2,4 +2,4 @@ package version // Version is the current release version of foostore. -const Version = "v0.5.0" +const const Version = "v0.5.1" -- cgit v1.2.3