Skip to content

Commit

Permalink
fix: intial schema needed even if not dev
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Mar 5, 2025
1 parent 446b298 commit 9b22b7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/buildengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ func New(
if adminClient == nil {
return e, nil
}
// Save initial schema
initialEvent := <-e.deployCoordinator.SchemaUpdates
e.targetSchema.Store(initialEvent.schema)
return e, nil
}

Expand Down Expand Up @@ -380,10 +383,6 @@ func (e *Engine) watchForModuleChanges(ctx context.Context, period time.Duration
cancel(fmt.Errorf("watch stopped: %w", context.Canceled))
}()

// Save initial schema
initialEvent := <-e.deployCoordinator.SchemaUpdates
e.targetSchema.Store(initialEvent.schema)

// Build and deploy all modules first.
_ = e.BuildAndDeploy(ctx, 1, true, false) //nolint:errcheck

Expand Down

0 comments on commit 9b22b7a

Please sign in to comment.