about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-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 b89fea732341..50c6c8589519 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)