From 24518ceeada132de6f0361c58e344ae970ed8f8f Mon Sep 17 00:00:00 2001 From: Andrew LeFevre Date: Mon, 15 Mar 2021 14:10:09 -0400 Subject: [PATCH] fix failing to build user packages named "embed" --- shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.go b/shared.go index aeddc6c..ad32f31 100644 --- a/shared.go +++ b/shared.go @@ -174,7 +174,7 @@ type listedPackage struct { } func (p *listedPackage) obfuscatedImportPath() string { - if p.Name == "main" || p.Name == "embed" || !p.Private { + if p.Name == "main" || p.ImportPath == "embed" || !p.Private { return p.ImportPath } newPath := hashWith(p.GarbleActionID, p.ImportPath)