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