From 8714d1006a8442bf63927add58db273957f8876b Mon Sep 17 00:00:00 2001 From: WYGIN Date: Wed, 25 Oct 2023 15:56:16 +0000 Subject: [PATCH] fix: code format Signed-off-by: WYGIN --- builder/config_reader.go | 1 - internal/builder/builder_test.go | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/builder/config_reader.go b/builder/config_reader.go index f0195f9e4..008984bff 100644 --- a/builder/config_reader.go +++ b/builder/config_reader.go @@ -270,4 +270,3 @@ func getFilePrefixSuffix(filename string) (prefix, suffix string, err error) { } return val[0], suffix, err } - diff --git a/internal/builder/builder_test.go b/internal/builder/builder_test.go index 8f0e18350..37124533d 100644 --- a/internal/builder/builder_test.go +++ b/internal/builder/builder_test.go @@ -1620,7 +1620,7 @@ func testBuilder(t *testing.T, when spec.G, it spec.S) { }) }) - when("when CNB_BUILD_CONFIG_DIR is defined", func () { + when("when CNB_BUILD_CONFIG_DIR is defined", func() { var buildConfigEnvName = "CNB_BUILD_CONFIG_DIR" var buildConfigEnvValue = "/cnb/dup-build-config-dir" it.Before(func() { @@ -1640,15 +1640,15 @@ func testBuilder(t *testing.T, when spec.G, it spec.S) { it("adds the env vars as files to the image", func() { layerTar, err := baseImage.FindLayerWithPath(buildConfigEnvValue + "/env/SOME_KEY") h.AssertNil(t, err) - h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue + "/env/SOME_KEY", + h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue+"/env/SOME_KEY", h.ContentEquals(`some-val`), h.HasModTime(archive.NormalizedDateTime), ) - h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue + "/env/OTHER_KEY.append", + h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue+"/env/OTHER_KEY.append", h.ContentEquals(`other-val`), h.HasModTime(archive.NormalizedDateTime), ) - h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue + "/env/OTHER_KEY.delim", + h.AssertOnTarEntry(t, layerTar, buildConfigEnvValue+"/env/OTHER_KEY.delim", h.ContentEquals(`:`), h.HasModTime(archive.NormalizedDateTime), )