Skip to content

Commit 1bd70b3

Browse files
author
Mateus Oliveira
authored
🐛 fix: Remove empty line at beginning of generated files (#3815)
fix: Remove empty line at beginning of generated files Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
1 parent 532134a commit 1bd70b3

File tree

19 files changed

+3
-22
lines changed

19 files changed

+3
-22
lines changed

docs/book/src/component-config-tutorial/testdata/project/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Binaries for programs and plugins
32
*.exe
43
*.exe~

docs/book/src/component-config-tutorial/testdata/project/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Image URL to use all building/pushing image targets
32
IMG ?= controller:latest
43
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.

docs/book/src/cronjob-tutorial/testdata/project/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Binaries for programs and plugins
32
*.exe
43
*.exe~

docs/book/src/cronjob-tutorial/testdata/project/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Image URL to use all building/pushing image targets
32
IMG ?= controller:latest
43
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.

docs/book/src/getting-started/testdata/project/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Binaries for programs and plugins
32
*.exe
43
*.exe~

docs/book/src/getting-started/testdata/project/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Image URL to use all building/pushing image targets
32
IMG ?= controller:latest
43
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.

pkg/plugins/golang/v4/scaffolds/internal/templates/gitignore.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ func (f *GitIgnore) SetTemplateDefaults() error {
3838
return nil
3939
}
4040

41-
const gitignoreTemplate = `
42-
# Binaries for programs and plugins
41+
const gitignoreTemplate = `# Binaries for programs and plugins
4342
*.exe
4443
*.exe~
4544
*.dll

pkg/plugins/golang/v4/scaffolds/internal/templates/gomod.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func (f *GoMod) SetTemplateDefaults() error {
4343
return nil
4444
}
4545

46-
const goModTemplate = `
47-
module {{ .Repo }}
46+
const goModTemplate = `module {{ .Repo }}
4847
4948
go 1.21
5049

pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ func (f *Makefile) SetTemplateDefaults() error {
7272
}
7373

7474
//nolint:lll
75-
const makefileTemplate = `
76-
# Image URL to use all building/pushing image targets
75+
const makefileTemplate = `# Image URL to use all building/pushing image targets
7776
IMG ?= {{ .Image }}
7877
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
7978
ENVTEST_K8S_VERSION = 1.29.0

testdata/project-v4-multigroup-with-deploy-image/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Binaries for programs and plugins
32
*.exe
43
*.exe~

0 commit comments

Comments
 (0)