From 38ce8a792e2aa09d2f642cb5bb229ff141ddcae8 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Fri, 1 Mar 2024 18:49:26 -0500 Subject: [PATCH] fixing a mistake in the guard condition Signed-off-by: Juan Bustamante --- internal/commands/buildpack_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/buildpack_package.go b/internal/commands/buildpack_package.go index 286a431dc0..376dba2a58 100644 --- a/internal/commands/buildpack_package.go +++ b/internal/commands/buildpack_package.go @@ -110,7 +110,7 @@ func BuildpackPackage(logger logging.Logger, cfg config.Config, packager Buildpa var order dist.Order // We need to read buildpack.toml to inspect the given targets pathToBuildpackToml := filepath.Join(relativeBaseDir, "buildpack.toml") - if _, err = os.Stat(pathToBuildpackToml); err != nil { + if _, err = os.Stat(pathToBuildpackToml); err == nil { buildpackCfg, err := packageConfigReader.ReadBuildpackDescriptor(pathToBuildpackToml) if err != nil { return err