From 96eb8dd4633cd51841bc0466b501ec68c073819a Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Wed, 13 Nov 2024 09:51:45 +1100 Subject: [PATCH] fix: fix language plugin logs --- go-runtime/compile/build.go | 4 ++-- internal/buildengine/languageplugin/plugin_client.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go-runtime/compile/build.go b/go-runtime/compile/build.go index 9d1228a62..bf73e0210 100644 --- a/go-runtime/compile/build.go +++ b/go-runtime/compile/build.go @@ -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 { @@ -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 { diff --git a/internal/buildengine/languageplugin/plugin_client.go b/internal/buildengine/languageplugin/plugin_client.go index 75667e92a..74e590457 100644 --- a/internal/buildengine/languageplugin/plugin_client.go +++ b/internal/buildengine/languageplugin/plugin_client.go @@ -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)