From 1f4d71a547df6641405c4efe81d0a77c20b11f6b Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 11 Mar 2023 21:40:20 +0100 Subject: [PATCH] Adjust Golang module name --- cmd/cciu/filter.go | 2 +- cmd/cciu/main.go | 12 ++++++------ go.mod | 2 +- internal/printer/json_printer.go | 3 ++- internal/printer/printer.go | 2 +- internal/printer/text_printer.go | 3 ++- internal/registry/fetcher/simple.go | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/cmd/cciu/filter.go b/cmd/cciu/filter.go index 8f94064..194231c 100644 --- a/cmd/cciu/filter.go +++ b/cmd/cciu/filter.go @@ -5,7 +5,7 @@ import ( "github.com/Masterminds/semver/v3" - "cciu/internal/tag" + "github.com/mgumz/cciu/internal/tag" ) const ( diff --git a/cmd/cciu/main.go b/cmd/cciu/main.go index 4b0defb..a7a62db 100644 --- a/cmd/cciu/main.go +++ b/cmd/cciu/main.go @@ -9,12 +9,12 @@ import ( "github.com/Masterminds/semver/v3" - "cciu/internal/imagespec" - "cciu/internal/printer" - "cciu/internal/registry" - "cciu/internal/registry/fetcher" - "cciu/internal/stats" - "cciu/internal/tag" + "github.com/mgumz/cciu/internal/imagespec" + "github.com/mgumz/cciu/internal/printer" + "github.com/mgumz/cciu/internal/registry" + "github.com/mgumz/cciu/internal/registry/fetcher" + "github.com/mgumz/cciu/internal/stats" + "github.com/mgumz/cciu/internal/tag" ) type cciuRepoTags struct { diff --git a/go.mod b/go.mod index e09d830..039f2dc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module cciu +module github.com/mgumz/cciu go 1.19 diff --git a/internal/printer/json_printer.go b/internal/printer/json_printer.go index ee980b5..b6ab3d2 100644 --- a/internal/printer/json_printer.go +++ b/internal/printer/json_printer.go @@ -1,12 +1,13 @@ package printer import ( - "cciu/internal/stats" "encoding/json" "io" "time" "github.com/Masterminds/semver/v3" + + "github.com/mgumz/cciu/internal/stats" ) // JSONPrinter collects the requested images, the fetched tags and creates diff --git a/internal/printer/printer.go b/internal/printer/printer.go index f443604..bea232f 100644 --- a/internal/printer/printer.go +++ b/internal/printer/printer.go @@ -5,7 +5,7 @@ import ( "github.com/Masterminds/semver/v3" - "cciu/internal/stats" + "github.com/mgumz/cciu/internal/stats" ) // Printer describes the interface for a cciu printer - a helper for controlled diff --git a/internal/printer/text_printer.go b/internal/printer/text_printer.go index 2b09da6..159a7de 100644 --- a/internal/printer/text_printer.go +++ b/internal/printer/text_printer.go @@ -1,12 +1,13 @@ package printer import ( - "cciu/internal/stats" "fmt" "io" "time" "github.com/Masterminds/semver/v3" + + "github.com/mgumz/cciu/internal/stats" ) const ( diff --git a/internal/registry/fetcher/simple.go b/internal/registry/fetcher/simple.go index 868728c..b7258e3 100644 --- a/internal/registry/fetcher/simple.go +++ b/internal/registry/fetcher/simple.go @@ -3,7 +3,7 @@ package fetcher import ( "time" - "cciu/internal/repo" + "github.com/mgumz/cciu/internal/repo" ) // Simple defines a simple registry.Fetcher which is just a tiny wrapper around