Skip to content

Commit

Permalink
Internal Refactor: "./internal" -> "./pkg"
Browse files Browse the repository at this point in the history
The renaming of the "internal" folder helps of keeping various
parts of Makefile and GH Actions streamlined with other projects.
  • Loading branch information
mgumz committed Mar 12, 2023
1 parent cb56763 commit 70261f7
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: WillAbides/[email protected]
with:
go-version: ${{ matrix.go }}
- run: "go test ./internal/..."
- run: "go test ./pkg/..."

reports:
name: "Run various reports on code basis"
Expand Down
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,24 @@ report-cyclo:
@echo '####################################################################'
gocyclo ./cmd/cciu
report-mispell:
@echo '####################################################################'
misspell ./cmd/

report-ineffassign:
@echo '####################################################################'
ineffassign ./cmd/... ./internal/...
ineffassign ./cmd/... ./pkg/...
report-vet:
@echo '####################################################################'
go vet ./cmd/... ./internal/...
go vet ./cmd/... ./pkg/...
report-staticcheck:
@echo '####################################################################'
staticcheck ./cmd/... ./internal/...
staticcheck ./cmd/... ./pkg/...

report-vuln:
@echo '####################################################################'
govulncheck ./...
govulncheck ./cmd/... ./pkg/...

report-gosec:
@echo '####################################################################'
gosec ./...
gosec ./cmd/... ./pkg/...

report-grype:
@echo '####################################################################'
Expand Down
2 changes: 1 addition & 1 deletion cmd/cciu/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/Masterminds/semver/v3"

"github.com/mgumz/cciu/internal/tag"
"github.com/mgumz/cciu/pkg/tag"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions cmd/cciu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

"github.com/Masterminds/semver/v3"

"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"
"github.com/mgumz/cciu/pkg/imagespec"
"github.com/mgumz/cciu/pkg/printer"
"github.com/mgumz/cciu/pkg/registry"
"github.com/mgumz/cciu/pkg/registry/fetcher"
"github.com/mgumz/cciu/pkg/stats"
"github.com/mgumz/cciu/pkg/tag"
)

type cciuRepoTags struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Masterminds/semver/v3"

"github.com/mgumz/cciu/internal/stats"
"github.com/mgumz/cciu/pkg/stats"
)

// JSONPrinter collects the requested images, the fetched tags and creates
Expand Down
2 changes: 1 addition & 1 deletion internal/printer/printer.go → pkg/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/Masterminds/semver/v3"

"github.com/mgumz/cciu/internal/stats"
"github.com/mgumz/cciu/pkg/stats"
)

// Printer describes the interface for a cciu printer - a helper for controlled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/Masterminds/semver/v3"

"github.com/mgumz/cciu/internal/stats"
"github.com/mgumz/cciu/pkg/stats"
)

const (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fetcher
import (
"time"

"github.com/mgumz/cciu/internal/repo"
"github.com/mgumz/cciu/pkg/repo"
)

// Simple defines a simple registry.Fetcher which is just a tiny wrapper around
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 70261f7

Please sign in to comment.