From 5536d2ae3ecaf1fec1c5481777b4ee3152550b16 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 4 Mar 2014 13:48:09 -0500 Subject: [PATCH] go/loader: convert directory separators to slash when enumerating packages. (On Windows the two are not the same.) Fixes golang/go#7189. Also: remove exception for code.google.com subtree; this was an artifact of my unusual setup. LGTM=gri R=alex.brainman, gri CC=golang-codereviews https://golang.org/cl/70060048 --- go/ssa/stdlib_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/ssa/stdlib_test.go b/go/ssa/stdlib_test.go index b2e5b0f5..d08f3449 100644 --- a/go/ssa/stdlib_test.go +++ b/go/ssa/stdlib_test.go @@ -33,9 +33,9 @@ func allPackages() []string { return filepath.SkipDir } if info.IsDir() { - pkg := strings.TrimPrefix(path, root) + pkg := filepath.ToSlash(strings.TrimPrefix(path, root)) switch pkg { - case "builtin", "pkg", "code.google.com": + case "builtin", "pkg": return filepath.SkipDir // skip these subtrees case "": return nil // ignore root of tree