From 3e3a367e4cb1219dfe45f4ea954b6c10ed4c68f4 Mon Sep 17 00:00:00 2001 From: Shu Kutsuzawa Date: Tue, 12 Oct 2021 08:51:52 +0900 Subject: [PATCH] export config --- {internal/config => config}/config.go | 0 {internal/config => config}/config_test.go | 2 +- internal/http/handler/module/module.go | 2 +- internal/http/handler/provider/download.go | 2 +- internal/http/handler/provider/download_test.go | 2 +- internal/http/handler/provider/provider.go | 2 +- internal/http/handler/provider/versions_test.go | 2 +- internal/http/server.go | 2 +- internal/server/server.go | 2 +- provider/provider.go | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename {internal/config => config}/config.go (100%) rename {internal/config => config}/config_test.go (94%) diff --git a/internal/config/config.go b/config/config.go similarity index 100% rename from internal/config/config.go rename to config/config.go diff --git a/internal/config/config_test.go b/config/config_test.go similarity index 94% rename from internal/config/config_test.go rename to config/config_test.go index 4c46887..1301ca8 100644 --- a/internal/config/config_test.go +++ b/config/config_test.go @@ -3,7 +3,7 @@ package config_test import ( "testing" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" ) func TestParse(t *testing.T) { diff --git a/internal/http/handler/module/module.go b/internal/http/handler/module/module.go index 6ca6099..8f29e88 100644 --- a/internal/http/handler/module/module.go +++ b/internal/http/handler/module/module.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" ) // Handler describes the handler for module diff --git a/internal/http/handler/provider/download.go b/internal/http/handler/provider/download.go index 0285e7d..0c797b6 100644 --- a/internal/http/handler/provider/download.go +++ b/internal/http/handler/provider/download.go @@ -6,7 +6,7 @@ import ( "path/filepath" "strings" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" p "github.com/cappyzawa/terraform-registry/provider" "github.com/go-chi/chi" ) diff --git a/internal/http/handler/provider/download_test.go b/internal/http/handler/provider/download_test.go index 6c3ed46..4fb14c8 100644 --- a/internal/http/handler/provider/download_test.go +++ b/internal/http/handler/provider/download_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" "github.com/cappyzawa/terraform-registry/internal/http/handler/provider" "github.com/go-chi/chi" "go.mercari.io/go-httpdoc" diff --git a/internal/http/handler/provider/provider.go b/internal/http/handler/provider/provider.go index 672ee7e..06884e4 100644 --- a/internal/http/handler/provider/provider.go +++ b/internal/http/handler/provider/provider.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" ) // Handler describes the handler for provider diff --git a/internal/http/handler/provider/versions_test.go b/internal/http/handler/provider/versions_test.go index b802901..cda52a9 100644 --- a/internal/http/handler/provider/versions_test.go +++ b/internal/http/handler/provider/versions_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" "github.com/cappyzawa/terraform-registry/internal/http/handler/provider" "github.com/go-chi/chi" "go.mercari.io/go-httpdoc" diff --git a/internal/http/server.go b/internal/http/server.go index 4387937..2c05c95 100644 --- a/internal/http/server.go +++ b/internal/http/server.go @@ -7,7 +7,7 @@ import ( "net" "net/http" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" "github.com/cappyzawa/terraform-registry/internal/http/handler/module" "github.com/cappyzawa/terraform-registry/internal/http/handler/provider" "github.com/cappyzawa/terraform-registry/internal/http/handler/wellknown" diff --git a/internal/server/server.go b/internal/server/server.go index d9354fb..4be4bc6 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -10,7 +10,7 @@ import ( "strconv" "time" - "github.com/cappyzawa/terraform-registry/internal/config" + "github.com/cappyzawa/terraform-registry/config" "github.com/cappyzawa/terraform-registry/internal/http" ) diff --git a/provider/provider.go b/provider/provider.go index eb7deeb..e24c9af 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -1,6 +1,6 @@ package provider -import "github.com/cappyzawa/terraform-registry/internal/config" +import "github.com/cappyzawa/terraform-registry/config" // Versions describes response for provider verions type Versions struct {