1
0
mirror of https://github.com/rancher/types.git synced 2025-08-30 19:32:18 +00:00

Vendor changes

This commit is contained in:
Dan Ramich 2019-04-10 15:56:49 -07:00 committed by Craig Jellick
parent 4fbbfbed06
commit d36829e75a
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@
github.com/rancher/types
github.com/pkg/errors v0.8.0
github.com/rancher/norman 03b89d4fb7143786491cee420102775a803fbed1
github.com/rancher/norman 01a9966237719f0ccad07194cb4ee161d7431495
github.com/coreos/prometheus-operator v0.25.0

View File

@ -468,7 +468,7 @@ func prepareDirs(dirs ...string) error {
}
for _, file := range files {
if strings.HasPrefix(file.Name(), "zz_generated") || strings.HasSuffix(file.Name(), "_mock_test.go") {
if strings.HasPrefix(file.Name(), "zz_generated") {
if err := os.Remove(path.Join(dir, file.Name())); err != nil {
return errors.Wrapf(err, "failed to delete %s", path.Join(dir, file.Name()))
}
@ -566,7 +566,7 @@ func generateFakes(k8sDir string, controllers []*types.Schema) error {
return err
}
// create the file
filePath := path.Join(k8sDir, "fakes", "zz_generated_"+addUnderscore(controller.ID)+"_mock_test.go")
filePath := path.Join(k8sDir, "fakes", "zz_generated_"+addUnderscore(controller.ID)+"_mock.go")
err = ioutil.WriteFile(filePath, out.Bytes(), 0644)
if err != nil {
return err