Skip to content

Commit

Permalink
cli/daemon: resolve local apps for client gen
Browse files Browse the repository at this point in the history
The client generation code path wasn't supporting local app ids.
Fix this.

Thanks Frank Schröder for the report.
  • Loading branch information
eandre committed Sep 25, 2024
1 parent 4e6fb7f commit 2c23cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *Server) GenClient(ctx context.Context, params *daemonpb.GenClientReques
var md *meta.Data
if params.EnvName == "local" {
// Determine the app root
app, err := s.apps.FindLatestByPlatformID(params.AppId)
app, err := s.apps.FindLatestByPlatformOrLocalID(params.AppId)
if errors.Is(err, apps.ErrNotFound) {
return nil, status.Errorf(codes.FailedPrecondition, "the app %s must be run locally before generating a client for the 'local' environment.",
params.AppId)
Expand Down

0 comments on commit 2c23cdf

Please sign in to comment.