Skip to content

Commit d72e551

Browse files
(cleanup): remove duplication of version implementation (#1728)
Before catalogd and operator-controller requires have a code implementation to set the Version. However, now both projects are the same and have the same version. Therefore, has no longer reason to keep both
1 parent ae41bfc commit d72e551

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

catalogd/cmd/catalogd/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ import (
6161
"github.com/operator-framework/operator-controller/catalogd/internal/serverutil"
6262
"github.com/operator-framework/operator-controller/catalogd/internal/source"
6363
"github.com/operator-framework/operator-controller/catalogd/internal/storage"
64-
"github.com/operator-framework/operator-controller/catalogd/internal/version"
6564
"github.com/operator-framework/operator-controller/catalogd/internal/webhook"
6665
fsutil "github.com/operator-framework/operator-controller/internal/util/fs"
66+
"github.com/operator-framework/operator-controller/internal/version"
6767
)
6868

6969
var (
@@ -127,7 +127,7 @@ func main() {
127127
pflag.Parse()
128128

129129
if catalogdVersion {
130-
fmt.Printf("%#v\n", version.Version())
130+
fmt.Printf("%#v\n", version.String())
131131
os.Exit(0)
132132
}
133133

catalogd/internal/version/version.go

-36
This file was deleted.

0 commit comments

Comments
 (0)