Skip to content

Commit

Permalink
fix: fix language plugin logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Nov 12, 2024
1 parent 1772782 commit 96eb8dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go-runtime/compile/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func Build(ctx context.Context, projectRootDir, stubsRoot string, config modulec

wg.Go(func() error {
if !importsChanged {
log.FromContext(ctx).Debugf("skipped go mod tidy (module dir)\n")
log.FromContext(ctx).Debugf("skipped go mod tidy (module dir)")
return nil
}
if err := exec.Command(wgctx, log.Debug, config.Dir, "go", "mod", "tidy").RunStderrError(wgctx); err != nil {
Expand All @@ -437,7 +437,7 @@ func Build(ctx context.Context, projectRootDir, stubsRoot string, config modulec
mainDir := filepath.Join(buildDir, "go", "main")
wg.Go(func() error {
if !mainModuleCtxChanged {
log.FromContext(ctx).Debugf("skipped go mod tidy (build dir)\n")
log.FromContext(ctx).Debugf("skipped go mod tidy (build dir)")
return nil
}
if err := exec.Command(wgctx, log.Debug, mainDir, "go", "mod", "tidy").RunStderrError(wgctx); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/buildengine/languageplugin/plugin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (p *pluginClientImpl) start(ctx context.Context, dir, language, name string
dir,
cmdPath,
langconnect.NewLanguageServiceClient,
plugin.WithEnvars("FTL_Name="+name),
plugin.WithEnvars("FTL_NAME="+name),
)
if err != nil {
return fmt.Errorf("failed to spawn plugin for %s: %w", name, err)
Expand Down

0 comments on commit 96eb8dd

Please sign in to comment.