From f0e46ec3e1edf929ded5fa8fbf9e016fd08e57c8 Mon Sep 17 00:00:00 2001 From: Noah S-C Date: Wed, 14 Feb 2024 08:49:26 +0000 Subject: [PATCH] pass correct (non `"main"`) importpath to nogo for `main` package (#3863) --- go/tools/builders/compilepkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/tools/builders/compilepkg.go b/go/tools/builders/compilepkg.go index b909fa86e0..4a1fc5ba61 100644 --- a/go/tools/builders/compilepkg.go +++ b/go/tools/builders/compilepkg.go @@ -453,7 +453,7 @@ func compileArchive( ctx, cancel := context.WithCancel(context.Background()) nogoChan = make(chan error) go func() { - nogoChan <- runNogo(ctx, workDir, nogoPath, goSrcsNogo, facts, packagePath, importcfgPath, outFactsPath) + nogoChan <- runNogo(ctx, workDir, nogoPath, goSrcsNogo, facts, importPath, importcfgPath, outFactsPath) }() defer func() { if nogoChan != nil {