Skip to content

Commit d6e6ea6

Browse files
authored
fix: Ensure tag promote command returns workflow.lock error (#1644)
Reference: https://linear.app/speakeasy/issue/GEN-1956/bug-cli-segmentation-fault-in-speakeasy-tag-promote-command
1 parent bca18bf commit d6e6ea6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/tag.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ func runTagPromote(ctx context.Context, flags tagPromoteFlagsArgs) error {
100100

101101
lockfile, err := workflow.LoadLockfile(projectDir)
102102

103+
if err != nil || lockfile == nil {
104+
return fmt.Errorf("failed to load workflow.lock: %w", err)
105+
}
106+
103107
revisions, err := getRevisions(ctx, flags.Sources, flags.CodeSamples, wf, lockfile)
104108
if err != nil {
105109
return err

0 commit comments

Comments
 (0)