We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2489b81 + 46d1127 commit 24a15ffCopy full SHA for 24a15ff
cmd/kubebuilder/initproject/vendor.go
@@ -89,9 +89,20 @@ func depExists() bool {
89
return err == nil
90
}
91
92
+// depManifestExists checks if DepManifestFile exists or not. It will panic
93
+// if it encounters unknown errors.
94
func depManifestExists() bool {
95
_, err := os.Stat(depManifestFile)
- return os.IsExist(err)
96
+ if err == nil {
97
+ // file exists
98
+ return true
99
+ }
100
+ if os.IsNotExist(err) {
101
+ return false
102
103
+ // some other error, panic
104
+ log.Fatalf("error looking up dep manifest file : %v", err)
105
106
107
108
func createNewDepManifest() {
0 commit comments