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 0796782
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 @@ -244,6 +244,9 @@ func New(
e.arch = info.Msg.Arch
}
}
// Save initial schema
initialEvent := <-e.deployCoordinator.SchemaUpdates
e.targetSchema.Store(initialEvent.schema)
if adminClient == nil {
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 0796782

Please sign in to comment.