about summary refs log tree commit diff
path: root/nix/buildGo
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildGo')
-rw-r--r--nix/buildGo/external/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildGo/external/main.go b/nix/buildGo/external/main.go
index b89fea7323..50c6c85895 100644
--- a/nix/buildGo/external/main.go
+++ b/nix/buildGo/external/main.go
@@ -97,7 +97,7 @@ func analysePackage(root, source, importpath string, stdlib map[string]bool) (pk
 
 		if i == importpath {
 			local = append(local, []string{})
-		} else if strings.HasPrefix(i, importpath) {
+		} else if strings.HasPrefix(i, importpath+"/") {
 			local = append(local, strings.Split(strings.TrimPrefix(i, importpath+"/"), "/"))
 		} else {
 			foreign = append(foreign, i)