diff --git a/CHANGELOG.md b/CHANGELOG.md index 429a0ed..4a63b25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.6.2] - 2024-09-03 + +### Fixed + +* Allow `apppack build` commands to work for non-pipeline apps. + ## [4.6.1] - 2024-08-28 ### Fixed diff --git a/cmd/build.go b/cmd/build.go index 58b2b71..5ebca7d 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -627,12 +627,14 @@ var buildStartCmd = &cobra.Command{ } a, err := app.Init(AppName, UseAWSCredentials, duration) checkErr(err) - if a.Pipeline && a.ReviewApp == nil { - err := fmt.Errorf("%q is a pipeline. You can build ReviewApps within a pipeline", a.Name) + if a.Pipeline { + if a.ReviewApp == nil { + err := fmt.Errorf("%q is a pipeline. You can build ReviewApps within a pipeline", a.Name) + checkErr(err) + } + _, err = a.ReviewAppExists() checkErr(err) } - _, err = a.ReviewAppExists() - checkErr(err) build, err := a.StartBuild(false) checkErr(err) ui.Spinner.Stop()