Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit fac4a7b

Browse files
committed
wip
Signed-off-by: Ibrahim AshShohail <[email protected]>
1 parent fa76bb8 commit fac4a7b

File tree

6 files changed

+271
-78
lines changed

6 files changed

+271
-78
lines changed

Gopkg.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,10 @@
2222
[[constraint]]
2323
name = "github.com/boltdb/bolt"
2424
version = "1.0.0"
25-
[constraint.prune]
26-
non-go = true
27-
go-tests = true
28-
unused-packages = true
2925

3026
[[constraint]]
3127
name = "github.com/jmank88/nuts"
3228
version = "0.2.0"
33-
prune = { non-go = true, go-tests = true, unused-packages = true }
3429

3530
[[constraint]]
3631
name = "github.com/golang/protobuf"

analyzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestAnalyzerDeriveManifestAndLock(t *testing.T) {
3838
t.Fatal(err)
3939
}
4040
} else {
41-
t.Fatalf("expected %s\n got %s", want, string(got))
41+
t.Fatalf("(WNT):\n%s\n(GOT):\n%s", want, string(got))
4242
}
4343
}
4444

internal/gps/prune.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ import (
1616
// PruneOptions represents the pruning options used to write the dependecy tree.
1717
type PruneOptions uint8
1818

19+
// PruneProjectOptions is map of prune options per project name.
20+
type PruneProjectOptions map[ProjectRoot]PruneOptions
21+
1922
const (
2023
// PruneNestedVendorDirs indicates if nested vendor directories should be pruned.
21-
PruneNestedVendorDirs = 1 << iota
24+
PruneNestedVendorDirs PruneOptions = 1 << iota
2225
// PruneUnusedPackages indicates if unused Go packages should be pruned.
2326
PruneUnusedPackages
2427
// PruneNonGoFiles indicates if non-Go files should be pruned.

0 commit comments

Comments
 (0)