-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2959 from ActiveState/DX-2343
Requirement operations do not set commit ID on build failure
- Loading branch information
Showing
4 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
// Package runbits comprises logic that is shared between controllers, ie., code that prints | ||
package runbits | ||
|
||
import ( | ||
"github.com/ActiveState/cli/internal/errs" | ||
"github.com/ActiveState/cli/pkg/platform/api/buildplanner/model" | ||
"github.com/ActiveState/cli/pkg/platform/runtime/buildplan" | ||
"github.com/ActiveState/cli/pkg/platform/runtime/setup" | ||
"github.com/ActiveState/cli/pkg/platform/runtime/setup/buildlog" | ||
) | ||
|
||
func IsBuildError(err error) bool { | ||
return errs.Matches(err, &setup.BuildError{}) || | ||
errs.Matches(err, &buildlog.BuildError{}) || | ||
errs.Matches(err, &model.BuildPlannerError{}) || | ||
errs.Matches(err, &buildplan.ArtifactError{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters