From f973113175b0d22affc9984e4e5260662c1bc4d8 Mon Sep 17 00:00:00 2001 From: hunterch Date: Wed, 6 Jul 2022 13:58:18 -0700 Subject: [PATCH] refactor: rename package historic to history the package interacts with history it is not itself a thing from the past --- internal/release/notes_data.go | 6 +++--- pkg/{historic => history}/decode.go | 2 +- pkg/{historic => history}/historic.go | 2 +- pkg/{historic => history}/historic_test.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename pkg/{historic => history}/decode.go (99%) rename pkg/{historic => history}/historic.go (99%) rename pkg/{historic => history}/historic_test.go (99%) diff --git a/internal/release/notes_data.go b/internal/release/notes_data.go index 7c4dac94e..e3bc4219f 100644 --- a/internal/release/notes_data.go +++ b/internal/release/notes_data.go @@ -26,7 +26,7 @@ import ( "github.com/pivotal-cf/kiln/internal/component" "github.com/pivotal-cf/kiln/pkg/cargo" - "github.com/pivotal-cf/kiln/pkg/historic" + "github.com/pivotal-cf/kiln/pkg/history" ) type ComponentData struct { @@ -123,8 +123,8 @@ func newFetchNotesData(repo *git.Repository, tileRepoOwner string, tileRepoName initialRevision: initialRevision, finalRevision: finalRevision, - historicKilnfile: historic.Kilnfile, - historicVersion: historic.Version, + historicKilnfile: history.Kilnfile, + historicVersion: history.Version, revisionResolver: repo, Storer: repo.Storer, repository: repo, diff --git a/pkg/historic/decode.go b/pkg/history/decode.go similarity index 99% rename from pkg/historic/decode.go rename to pkg/history/decode.go index d7edc1d07..aa48f2209 100644 --- a/pkg/historic/decode.go +++ b/pkg/history/decode.go @@ -1,4 +1,4 @@ -package historic +package history import ( "encoding/json" diff --git a/pkg/historic/historic.go b/pkg/history/historic.go similarity index 99% rename from pkg/historic/historic.go rename to pkg/history/historic.go index 425d1c860..f1ec33159 100644 --- a/pkg/historic/historic.go +++ b/pkg/history/historic.go @@ -1,4 +1,4 @@ -package historic +package history import ( "bytes" diff --git a/pkg/historic/historic_test.go b/pkg/history/historic_test.go similarity index 99% rename from pkg/historic/historic_test.go rename to pkg/history/historic_test.go index 97eca011e..6d843513e 100644 --- a/pkg/historic/historic_test.go +++ b/pkg/history/historic_test.go @@ -1,4 +1,4 @@ -package historic +package history import ( "testing"