From aa7cfb188d2438d51a9a77e59a32b3ddbb386d06 Mon Sep 17 00:00:00 2001 From: fuba Date: Sun, 9 Mar 2025 21:14:32 +0900 Subject: [PATCH 1/2] Update: Fix repository references and rename command binary - Rename command binary from 'histree' to 'histree-core' for consistency - Fix import paths in all Go files --- .github/release_template.md | 7 ------- CHANGELOG.md | 11 ++++++++--- README.md | 2 +- cmd/{histree => histree-core}/main.go | 2 +- cmd/{histree => histree-core}/main_test.go | 2 +- go.mod | 2 +- pkg/histree/histree.go | 2 +- 7 files changed, 13 insertions(+), 15 deletions(-) rename cmd/{histree => histree-core}/main.go (98%) rename cmd/{histree => histree-core}/main_test.go (99%) diff --git a/.github/release_template.md b/.github/release_template.md index eeab55c..dc8d6e0 100644 --- a/.github/release_template.md +++ b/.github/release_template.md @@ -16,10 +16,3 @@ ### Migrations - - -### Installation -1. Download the `histree.tar.gz` file -2. Extract it: `tar xzf histree.tar.gz` -3. Run the installation: `make install` - -If upgrading from a previous version, check if there are any migration steps in the "Migrations" section above. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d41627d..c978703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.3.4 +### Bug Fixes +- Fixed incorrect URLs in documentation and package references +- Updated GitHub username references from 'ec' to 'fuba' + ## v0.3.3 ### Features - **Library Support**: Refactored core functionality into a reusable Go library @@ -7,7 +12,7 @@ - **Timezone Handling**: Improved handling of timestamps across different timezones ### API Changes -- Added public library package `github.com/ec/histree-core/pkg/histree` +- Added public library package `github.com/fuba/histree-core/pkg/histree` - Created stable API for database operations and formatting - Exported key types and constants for third-party integration @@ -19,12 +24,12 @@ ### Installation #### Command-line tool ```bash -go install github.com/ec/histree-core/cmd/histree@latest +go install github.com/fuba/histree-core/cmd/histree-core@latest ``` #### Library ```bash -go get github.com/ec/histree-core +go get github.com/fuba/histree-core ``` ## v0.2.0 diff --git a/README.md b/README.md index 5852cd2..908dbb1 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This project was developed with the assistance of ChatGPT and GitHub Copilot. #### Go Install (recommended) ```sh -go install github.com/fuba/histree-core/cmd/histree@latest +go install github.com/fuba/histree-core/cmd/histree-core@latest ``` #### Building from Source diff --git a/cmd/histree/main.go b/cmd/histree-core/main.go similarity index 98% rename from cmd/histree/main.go rename to cmd/histree-core/main.go index 42030da..2152023 100644 --- a/cmd/histree/main.go +++ b/cmd/histree-core/main.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/ec/histree-core/pkg/histree" + "github.com/fuba/histree-core/pkg/histree" ) func main() { diff --git a/cmd/histree/main_test.go b/cmd/histree-core/main_test.go similarity index 99% rename from cmd/histree/main_test.go rename to cmd/histree-core/main_test.go index 451f6bb..819a0f1 100644 --- a/cmd/histree/main_test.go +++ b/cmd/histree-core/main_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/ec/histree-core/pkg/histree" + "github.com/fuba/histree-core/pkg/histree" ) func setupTestDB(t *testing.T) (*histree.DB, func()) { diff --git a/go.mod b/go.mod index 5bf0a57..c5de923 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ec/histree-core +module github.com/fuba/histree-core go 1.18 diff --git a/pkg/histree/histree.go b/pkg/histree/histree.go index 6eb5659..b73ae98 100644 --- a/pkg/histree/histree.go +++ b/pkg/histree/histree.go @@ -11,7 +11,7 @@ import ( // Version information const ( - Version = "v0.3.3" + Version = "v0.3.4" ) // OutputFormat defines how history entries are formatted when displayed From cf66318fdcf72b07ab8534b222fd13a520831b15 Mon Sep 17 00:00:00 2001 From: fuba Date: Sun, 9 Mar 2025 21:19:22 +0900 Subject: [PATCH 2/2] fix makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1074570..0ba4d63 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ VERSION := $(shell git describe --tags --always --dirty) all: bin/histree-core -bin/histree-core: cmd/histree/*.go - go build -ldflags "-X main.Version=$(VERSION)" -o bin/histree-core ./cmd/histree +bin/histree-core: cmd/histree-core/*.go + go build -ldflags "-X main.Version=$(VERSION)" -o bin/histree-core ./cmd/histree-core test: go test -v ./...