Skip to content

Commit

Permalink
pkg: Rename cmd/ to promobot/
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
  • Loading branch information
justaugustus committed Oct 14, 2020
1 parent b88d7b7 commit 721f261
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test-mac:
//pkg/api/files:go_default_test \
//pkg/audit:go_default_test \
//pkg/dockerregistry:go_default_test \
//pkg/cmd:go_default_test \
//pkg/promobot:go_default_test \
//pkg/vulndash/adapter:go_default_test
test-ci: download
make build
Expand Down
2 changes: 1 addition & 1 deletion cmd/promobot-files/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go_library(
importpath = "sigs.k8s.io/k8s-container-image-promoter/cmd/promobot-files",
visibility = ["//visibility:private"],
deps = [
"//pkg/cmd:go_default_library",
"//pkg/promobot:go_default_library",
"@io_k8s_klog//:go_default_library",
],
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/promobot-files/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os"

"k8s.io/klog"
"sigs.k8s.io/k8s-container-image-promoter/pkg/cmd"
cmd "sigs.k8s.io/k8s-container-image-promoter/pkg/promobot"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/promobot-generate-manifest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go_library(
importpath = "sigs.k8s.io/k8s-container-image-promoter/cmd/promobot-generate-manifest",
visibility = ["//visibility:private"],
deps = [
"//pkg/cmd:go_default_library",
"//pkg/promobot:go_default_library",
"@io_k8s_klog//:go_default_library",
"@io_k8s_sigs_yaml//:go_default_library",
"@org_golang_x_xerrors//:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion cmd/promobot-generate-manifest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"golang.org/x/xerrors"
"k8s.io/klog"
"sigs.k8s.io/k8s-container-image-promoter/pkg/cmd"
cmd "sigs.k8s.io/k8s-container-image-promoter/pkg/promobot"
"sigs.k8s.io/yaml"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/BUILD.bazel → pkg/promobot/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go_library(
"hash.go",
"promotefiles.go",
],
importpath = "sigs.k8s.io/k8s-container-image-promoter/pkg/cmd",
importpath = "sigs.k8s.io/k8s-container-image-promoter/pkg/promobot",
visibility = ["//visibility:public"],
deps = [
"//pkg/api/files:go_default_library",
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions pkg/cmd/hash_test.go → pkg/promobot/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (
"testing"

"k8s.io/utils/diff"
cmd "sigs.k8s.io/k8s-container-image-promoter/pkg/promobot"
"sigs.k8s.io/yaml"

"sigs.k8s.io/k8s-container-image-promoter/pkg/cmd"
)

func TestHash(t *testing.T) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ package cmd_test
import (
"testing"

cmd "sigs.k8s.io/k8s-container-image-promoter/pkg/promobot"
"sigs.k8s.io/yaml"

"sigs.k8s.io/k8s-container-image-promoter/pkg/cmd"
)

func TestReadManifests(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 721f261

Please sign in to comment.