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

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
  • Loading branch information
ibrasho committed Oct 27, 2017
1 parent fa76bb8 commit fac4a7b
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 78 deletions.
5 changes: 0 additions & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@
[[constraint]]
name = "github.com/boltdb/bolt"
version = "1.0.0"
[constraint.prune]
non-go = true
go-tests = true
unused-packages = true

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

[[constraint]]
name = "github.com/golang/protobuf"
Expand Down
2 changes: 1 addition & 1 deletion analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAnalyzerDeriveManifestAndLock(t *testing.T) {
t.Fatal(err)
}
} else {
t.Fatalf("expected %s\n got %s", want, string(got))
t.Fatalf("(WNT):\n%s\n(GOT):\n%s", want, string(got))
}
}

Expand Down
5 changes: 4 additions & 1 deletion internal/gps/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ import (
// PruneOptions represents the pruning options used to write the dependecy tree.
type PruneOptions uint8

// PruneProjectOptions is map of prune options per project name.
type PruneProjectOptions map[ProjectRoot]PruneOptions

const (
// PruneNestedVendorDirs indicates if nested vendor directories should be pruned.
PruneNestedVendorDirs = 1 << iota
PruneNestedVendorDirs PruneOptions = 1 << iota
// PruneUnusedPackages indicates if unused Go packages should be pruned.
PruneUnusedPackages
// PruneNonGoFiles indicates if non-Go files should be pruned.
Expand Down
Loading

0 comments on commit fac4a7b

Please sign in to comment.