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

Adding gps to dep #453

Merged
merged 994 commits into from May 3, 2017
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
994 commits
Select commit Hold shift + click to select a range
c97a48a
Remove blank import
ReSTARTR Jan 29, 2017
5e16de3
Unexport const value
ReSTARTR Jan 29, 2017
9923074
Merge branch 'master' into read-symlink
ReSTARTR Jan 29, 2017
27aff4d
Fix syntax error
ReSTARTR Jan 29, 2017
559b762
Refactor code of reading symlinks
ReSTARTR Jan 29, 2017
8d84767
Remove unnecessary changes
ReSTARTR Jan 29, 2017
2e8c737
Skip symlink test if it is run on windows
ReSTARTR Jan 29, 2017
1b2e252
Merge pull request sdboyer/gps#163 from sdboyer/lp-perms
sdboyer Jan 29, 2017
8be9464
Introduce monitoredCmd
Jan 29, 2017
17c076b
Changes requested by @sdboyer
Jan 31, 2017
059817d
Merge pull request sdboyer/gps#164 from erizocosmico/bugfix-84/hung-p…
sdboyer Feb 2, 2017
40fd7c2
Adding initial commit for trace output
krisnova Feb 3, 2017
6730b22
Go fmt
krisnova Feb 3, 2017
b04a6c5
Changes per review
krisnova Feb 3, 2017
9323ca0
Remove indent on panic
krisnova Feb 3, 2017
bb979b6
Removing extraneous %
krisnova Feb 3, 2017
c79c72d
Merge pull request sdboyer/gps#168 from kris-nova/viz-improvements
sdboyer Feb 3, 2017
555dcd7
Use a tempdir instead of relative dir in example
sdboyer Feb 3, 2017
b261017
Use filepath.IsAbs instead of strings.HasPrefix
ReSTARTR Feb 5, 2017
988f54d
Read the link destination
ReSTARTR Feb 5, 2017
b4c12ed
Declare type `tc` before declaring `table`
ReSTARTR Feb 5, 2017
09e474b
Skip if symlink is broken
ReSTARTR Feb 12, 2017
11eb772
Add non-sibling symlinking cases
ReSTARTR Feb 12, 2017
5056cec
Ensure the existence of the gopath
ReSTARTR Feb 12, 2017
bb0289a
Add ListPackages case w/slashes in root path
sdboyer Jan 19, 2017
c3a6f2d
Remove basedir silliness from wmToReach()
sdboyer Jan 19, 2017
f22a416
Test for error from ListPackages on non-dir arg
sdboyer Jan 19, 2017
728795a
Add analysis test for import cycles
sdboyer Jan 19, 2017
5506051
Add relative imports tests
sdboyer Jan 19, 2017
01fc034
Update LocalImportsError to suit
sdboyer Jan 19, 2017
cad8cf2
Make ExternalReach produce in- and ex-ReachMaps
sdboyer Jan 30, 2017
5518b39
Refactor solver with new ExternalReach returns
sdboyer Jan 30, 2017
576f3cd
s/ExternalReach/ToReachMaps/
sdboyer Jan 30, 2017
3097421
Expand TestWorkmapToReach to include inrm
sdboyer Jan 31, 2017
6816de4
Apply new package list to atom before selecting
sdboyer Jan 31, 2017
afba47f
Fix bug in preparation of workmaps
sdboyer Jan 31, 2017
81d18c6
Expand TestToReachMaps with internal rm checks
sdboyer Feb 2, 2017
0a9f6d9
Encompass both internal and external in ReachMaps
sdboyer Feb 13, 2017
c882f60
s/ListExternalImports/Flatten/
sdboyer Feb 13, 2017
3179508
Return "error map" from PackageTree.ToReachMap()
sdboyer Feb 13, 2017
d1a661d
Separate cmd vars to minimize overwrite chance
sdboyer Feb 13, 2017
1d22d1d
gofmt
sdboyer Feb 13, 2017
8504a6e
Add error backpropagation control to ToReachMap()
sdboyer Feb 22, 2017
f023f6e
Fix up docs just a bit more
sdboyer Feb 22, 2017
7d1be12
Merge pull request sdboyer/gps#148 from sdboyer/reachmaps
sdboyer Feb 22, 2017
0d1d0ad
Check pl len during bmi removal from unsel queue
sdboyer Mar 3, 2017
dfd7d7c
Disable TestMultiFetchThreadsafe until fixed
sdboyer Mar 3, 2017
71a1e5e
Don't try to pop dep when it's the root
sdboyer Mar 4, 2017
b430050
Promote into readSymlink function
ReSTARTR Mar 4, 2017
337a30b
Remove old commented tests from pub's beastiary
sdboyer Mar 4, 2017
8709888
Merge pull request sdboyer/gps#157 from ReSTARTR/read-symlink
sdboyer Mar 5, 2017
1e0768e
Convert table tests to subtests
zbintliff Mar 5, 2017
39533be
Convert TestListPackages to Sub-Tests
zbintliff Mar 5, 2017
f672656
SubTests for TestDeduceFromPath
zbintliff Mar 5, 2017
b5a09fd
Revert "Merge pull request sdboyer/gps#157 from ReSTARTR/read-symlink"
sdboyer Mar 6, 2017
d6c5338
Convert TestVanityDeduction to SubTests
zbintliff Mar 5, 2017
61ecc17
SubTests for TestBimodalSolves TestBasicSolves TestLockedProjectsEq a…
zbintliff Mar 5, 2017
1c939c0
Merge pull request sdboyer/gps#178 from zbintliff/feature/sub-tests
sdboyer Mar 8, 2017
8e5716f
Fix doc comment
sdboyer Mar 9, 2017
085dfb6
Fix bug causing test hangs
sdboyer Mar 9, 2017
2e9a470
Install bzr on circle...wow how did this happen
sdboyer Mar 9, 2017
3a4ff14
Ensure the existence of the gopath
ReSTARTR Feb 12, 2017
29b4016
reimplement remote interactions of vcs.Repo as monitored commands
Mar 9, 2017
ad8591a
uncapitalize errors and unexport SVN XML types
Mar 10, 2017
0377b8d
add tests for vcs.Repo wrappers
Mar 10, 2017
f07f954
Fix data race in activityBuffer
spenczar Mar 10, 2017
73fcb21
Revert testing cruft
spenczar Mar 10, 2017
5964d68
Merge pull request sdboyer/gps#185 from spenczar/fix_activity_buffer_…
sdboyer Mar 10, 2017
5ae79f7
Fix err shadowing bug that caused panics for unreachable repos
spenczar Mar 10, 2017
178ffce
Merge pull request sdboyer/gps#187 from spenczar/fix_err_shadowing_bug
sdboyer Mar 10, 2017
5fd1f8a
Check for required bins pretest
spenczar Mar 10, 2017
560b906
Merge pull request sdboyer/gps#186 from spenczar/check_for_executable…
sdboyer Mar 10, 2017
c1f9e20
Document how to set up a dev environment
spenczar Mar 10, 2017
023bc2f
Merge pull request sdboyer/gps#188 from spenczar/document_contributio…
sdboyer Mar 10, 2017
3d8c305
#172 change analyzer version to int
chx Mar 12, 2017
c8e1552
Merge pull request sdboyer/gps#190 from chx/master
sdboyer Mar 12, 2017
f65c6dd
Make sure you close files after opening them.
tomwilkie Mar 12, 2017
7770c37
Improve error messages then a VCS operation fails.
tomwilkie Mar 12, 2017
e1aa815
Merge pull request sdboyer/gps#193 from tomwilkie/improve-error-message
sdboyer Mar 12, 2017
4600e1d
Improve error handling in maybeSources
sdboyer Mar 12, 2017
cb9bdac
Review feedback: close file immediately.
tomwilkie Mar 12, 2017
c5babca
Merge pull request sdboyer/gps#191 from tomwilkie/too-many-fds
sdboyer Mar 12, 2017
70e680b
install subversion in CircleCI
Mar 12, 2017
170a7c8
Merge pull request sdboyer/gps#171 from erizocosmico/monitored-commands
sdboyer Mar 14, 2017
369aee8
extract PackageTree to pkgtree package
Mar 10, 2017
20365b9
Very dash, much line break
sdboyer Mar 20, 2017
4481599
Skip vcs repo tests in short mode
sdboyer Mar 20, 2017
ebef1ac
Follow symlinks when stripping vendor directories
spenczar Mar 20, 2017
3a687e6
Add test of inDirectory function
spenczar Mar 21, 2017
bf7d9da
Remove symlinks named 'vendor' when trimming
spenczar Mar 21, 2017
f5368b8
Make OS-agnostic link targets in test
spenczar Mar 21, 2017
6d76a93
Reorder fs test check of symlink and directory
spenczar Mar 21, 2017
094bf64
remove unused stuff
Mar 21, 2017
a768073
move analysis into solver
Mar 21, 2017
0380573
Use absolute symlinks when testing on windows
spenczar Mar 21, 2017
c4261af
move fs to internal/fs
Mar 21, 2017
ec45235
Give tested monitored cmd a little slack
spenczar Mar 21, 2017
2de7381
Revert change to TestMonitoredCmd
spenczar Mar 21, 2017
029b952
move isStdLib to internal pkg
Mar 21, 2017
bafe827
fix ci configs to run tests in sub packages
Mar 21, 2017
e0c657a
fix typo in circle.yml
Mar 21, 2017
1fd55d0
ci: remove temporary stuff during coverage aggregation
Mar 21, 2017
ad7d3d1
get rid of unused mocks
Mar 21, 2017
d8d976d
Relax rules for valid github usernames
jstemmer Mar 21, 2017
3c68118
Merge pull request sdboyer/gps#201 from jstemmer/github-usernames
sdboyer Mar 22, 2017
6b4c844
ci: fix coverage generation in circle.yml
Mar 28, 2017
befdcc4
revert pkgtree error types renaming
Mar 28, 2017
e8e777c
Merge pull request sdboyer/gps#189 from narqo/extract-package-tree
sdboyer Mar 29, 2017
f65df13
Rename types.go to identifier.go - less generic
sdboyer Mar 29, 2017
8ceed96
Initial sketch of new approach to sm concurrency
sdboyer Mar 16, 2017
a774dd5
Add callManager
sdboyer Mar 20, 2017
082ceb8
Reorganize new components, add them to sourceMgr
sdboyer Mar 20, 2017
2d5bdf4
Fixups in response to review
sdboyer Mar 22, 2017
b477fd9
Abstract out singleSourceCache concept
sdboyer Mar 22, 2017
1d78c9b
Modify monitoredCmd to take a Context
sdboyer Mar 22, 2017
1e047c2
Convert source, maybeSource to new cache system
sdboyer Mar 22, 2017
32bd663
Make glide happy
sdboyer Mar 22, 2017
8a82e0d
Flesh out sourceGateway to reasonably complete
sdboyer Mar 28, 2017
ed1cbc0
Convert sourceMgr calls to new systems
sdboyer Mar 28, 2017
0c1236e
Remove dead code, refactor tests so it compiles
sdboyer Mar 28, 2017
ca8cc86
Move deducers.go contents into existing files
sdboyer Mar 28, 2017
5a2efd4
Pass more contexts, handle scheme mismatch case
sdboyer Mar 28, 2017
56e6ec4
Update two old tightly coupled tests
sdboyer Mar 28, 2017
b41ad48
Fix dangling var
sdboyer Mar 28, 2017
957e06e
Convert maybeSources to use new patterns
sdboyer Mar 29, 2017
ddcbc04
Update README wrt glide
sdboyer Mar 29, 2017
7783a90
Move source gateway setup into method, per review
sdboyer Mar 29, 2017
15ebf92
Refactor more logic into gateway and out of src
sdboyer Mar 29, 2017
4f67935
Try to defend against windows proc weirdness
sdboyer Mar 29, 2017
56f2910
Don't ignore error in runFromCwd
jstemmer Mar 29, 2017
ec7fb8c
Circle wasn't failing on error
sdboyer Mar 30, 2017
67081e5
Circle wasn't failing on error
sdboyer Mar 30, 2017
5f1d62a
Replace deduceCoord's action chan with a mutex
sdboyer Mar 30, 2017
45d82b7
Pull out more cruft from sources
sdboyer Mar 30, 2017
7c07743
Cut test time down significantly w/parallelism
sdboyer Mar 30, 2017
028640f
Merge pull request sdboyer/gps#204 from jstemmer/fix-ignored-err
sdboyer Mar 30, 2017
e455982
Convert source methods to take only Revisions
sdboyer Mar 30, 2017
cb1b04f
Remove storeVersionMap() calls from source
sdboyer Mar 30, 2017
7e65302
Make projectInfo entirely internal to source cache
sdboyer Mar 30, 2017
75dec7b
Integrate context for essential vcs cmds
sdboyer Mar 30, 2017
b4f6a3f
Wrap all sourceGateway inner calls w/callMgr
sdboyer Mar 31, 2017
c98990e
s/callManager/supervisor/g
sdboyer Mar 31, 2017
eaa47df
Connect supervisor to top-level Release() logic
sdboyer Mar 31, 2017
5ea4642
Re-enable multi fetch test
sdboyer Mar 31, 2017
a20ea60
Merge branch 'master' into sm-channels
sdboyer Mar 31, 2017
3bda6ae
Shoehorn trace output into testing logs
sdboyer Mar 31, 2017
181d01e
Disable verbose output on tests
sdboyer Mar 31, 2017
430a88a
Implement updateVersion() locally, with context
sdboyer Mar 31, 2017
dfeb030
Fix bad Errorf argument in tests
spenczar Apr 1, 2017
8484762
Condense the guts of source impl a bit more
sdboyer Apr 1, 2017
8b07e55
Make ProjectAnalyzer a solver param, not the sm
sdboyer Apr 1, 2017
4940327
More source-related cleanup and cruft removal.
sdboyer Apr 1, 2017
760234a
Make the vcs_repo tests fail when encountering an error
jstemmer Apr 1, 2017
749cf21
Update example with new ProjectAnalyzer pattern
sdboyer Apr 1, 2017
99fb3c9
Merge pull request sdboyer/gps#205 from jstemmer/fix-vcs_repo_test
sdboyer Apr 1, 2017
d317d3a
Run vendor stripping tests against junctions on windows
spenczar Apr 2, 2017
e52fe21
Fix comment typos
spenczar Apr 2, 2017
f9d1fd9
Don't delete target directory of junctions
spenczar Apr 2, 2017
d0ea5d5
Create junction to an absolute path
spenczar Apr 2, 2017
034d0ff
Skip junctions when pruning out recursive vendor dirs
spenczar Apr 2, 2017
7bbc944
Add Release() to the SourceManager interface
spenczar Apr 2, 2017
00e87fe
Add sourceGateway tests
sdboyer Apr 3, 2017
3db4bb4
chan instead of real sigs in TestSignalHandling
sdboyer Apr 3, 2017
f3b51ce
Go 1.7 compat: drop sort.Slice() usage
sdboyer Apr 3, 2017
2439827
Expand timeout for appveyor/windows
sdboyer Apr 3, 2017
e1761e6
Trim unneccessary bits out of repo handling
sdboyer Apr 3, 2017
2a8fcdd
Rename update() to fetch() in local repo interface
sdboyer Apr 3, 2017
a257c46
Merge branch 'master' into sm-channels
sdboyer Apr 3, 2017
6c37dbd
Test more probative URL in TestUnreachableSource
sdboyer Apr 4, 2017
411118b
Merge pull request sdboyer/gps#196 from sdboyer/sm-channels
sdboyer Apr 4, 2017
a33a859
Ignore underscore-led files when parsing
sdboyer Apr 7, 2017
c2b270e
Always remove temp dir after test in vcs_source_test
jstemmer Apr 8, 2017
1b6303f
Replace Errorf followed by FailNow with Fatalf
jstemmer Apr 8, 2017
584844e
Merge pull request sdboyer/gps#212 from jstemmer/test-cleanup
sdboyer Apr 9, 2017
7d187c8
Remove nearly-empty test file
spenczar Apr 10, 2017
5bb8a2e
Clean up file system tests from CR comments
spenczar Apr 10, 2017
4d00478
Remove Release method from sourceBridge interface
spenczar Apr 10, 2017
fe2faae
Just copy the method set of SourceManager into sourceBridge
spenczar Apr 10, 2017
5558ce4
Only remove symlinks to vendor dirs on non-Windows OSes
spenczar Apr 10, 2017
8809e55
Add TODO note about improving windows symlink support
spenczar Apr 10, 2017
5a069e3
Remove duplicated windows test
spenczar Apr 10, 2017
7e5d96c
Set permissions on created junctions so filepath.Walk works
spenczar Apr 10, 2017
98a4c15
Call icacls on the junction link itself
spenczar Apr 10, 2017
957d6f1
Merge branch 'master' into release_source_manager
spenczar Apr 10, 2017
ed4342d
Update method set of bridge to match SourceManager
spenczar Apr 10, 2017
cbe8c18
Merge pull request sdboyer/gps#206 from spenczar/release_source_manager
sdboyer Apr 10, 2017
6500ab5
Move LockDiff from dep into gps
carolynvs Apr 10, 2017
e9a32df
LockDiff tests
carolynvs Apr 10, 2017
9aa44fd
Fix exported doc strings
carolynvs Apr 11, 2017
1d15e2a
Remove tests of junctions
spenczar Apr 11, 2017
cf06e68
fix empty out data check
sakeven Apr 13, 2017
b440b3c
Merge pull request sdboyer/gps#214 from sakeven/master
sdboyer Apr 13, 2017
2d3077a
Merge pull request sdboyer/gps#199 from spenczar/fix_symlink_vendor_dir
sdboyer Apr 13, 2017
fdda10c
Rename GetVersionInfo to VersionComponentStrings
carolynvs Apr 14, 2017
a796e9d
Test calling DiffLocks will one or more empty locks
carolynvs Apr 14, 2017
242add5
Merge pull request sdboyer/gps#213 from carolynvs/lockdiff
sdboyer Apr 14, 2017
7040c9c
Convert ListVersions() to return []PairedVersion
sdboyer Apr 6, 2017
e29392e
Resolve embedding problem with a fully new type
sdboyer Apr 15, 2017
63dc997
Drop ListVersions() from sourceBridge
sdboyer Apr 15, 2017
85c30c3
Hooooouuunded
sdboyer Apr 15, 2017
9f5f65d
Add more formal tests for the unifier, sorting
sdboyer Apr 15, 2017
ad92dae
Merge pull request sdboyer/gps#210 from sdboyer/paired-lv
sdboyer Apr 15, 2017
f9e9408
Move typed{V,C}String() func to private method
sdboyer Apr 15, 2017
e12550c
Check if Process non-nil before calling Kill
sdboyer Apr 16, 2017
7a13f93
Re-enable checkRevisionExists() check
sdboyer Apr 16, 2017
32a4a05
Remove overzealous deduction trie insert
sdboyer Apr 16, 2017
598fa11
Solver shouldn't exclude main pkgs from ReachMaps
sdboyer Apr 16, 2017
eaa693e
Remove crufty monitoredCmd.ctx & add a test case
sdboyer Apr 17, 2017
02cd877
Move package into /gps directory
krisnova Apr 21, 2017
b3f2264
Moving .gitignore into /gps
krisnova Apr 21, 2017
20761df
Merge branch 'master' of /go/src/github.com/sdboyer/gps into add-gps
krisnova Apr 21, 2017
122ade3
String replacing for import paths
krisnova Apr 21, 2017
9c8c70c
Remove vendor/github.com/sdboyer/gps
krisnova Apr 21, 2017
94ba649
Changes from code review
krisnova Apr 21, 2017
d740f57
Fixing travis
krisnova Apr 21, 2017
0cd0e62
Getting basic tests passing
krisnova Apr 21, 2017
5f293e0
More GPS file changes
krisnova Apr 24, 2017
ea91425
Removing process check and kill to prevent race
krisnova Apr 24, 2017
ae28a72
(To Squash) Attempt at Travis
krisnova Apr 24, 2017
820d108
(To Squash) Moving CODE_OF_CONDUCT.md ../
krisnova Apr 25, 2017
12af994
Fixing staticcheck concerns
krisnova Apr 25, 2017
95de6b4
Resolving travis
krisnova Apr 25, 2017
38bd1da
Merge branch 'master' into add-gps
krisnova Apr 25, 2017
0561ca9
Fix gofmt and travis
krisnova Apr 25, 2017
b41a8be
Marking gofmt hack script executable
krisnova Apr 25, 2017
795c88c
Remove find from travis.yaml for gofmt
krisnova Apr 25, 2017
871f593
Merge branch 'master' into add-gps
krisnova Apr 26, 2017
e7fc7d2
Include tip in hg result set
sdboyer Apr 29, 2017
379102b
Fix races in monitoredCmd
sdboyer Apr 29, 2017
4d5c597
Merge branch 'master' into add-gps
krisnova May 2, 2017
a244483
Updating import path from @sdboyer's commits
krisnova May 2, 2017
5538471
Ignore test data directory
krisnova May 2, 2017
068704b
Disable gofmt in travis, enable in codeclimate, exclude test in codec…
krisnova May 2, 2017
bd57fe9
Ensure with new vendor
krisnova May 2, 2017
134b247
Bump to ^v1.11.0
krisnova May 2, 2017
38fccd7
Revert manager_test.go
krisnova May 2, 2017
8dc285c
Fixing deadlock, and still handling staticcheck
krisnova May 2, 2017
3c483ab
gofmt manager_test.go
krisnova May 2, 2017
0cb2fcd
Add subpkgs to appveyor and bzr to osx travis env
sdboyer May 2, 2017
c1968f4
Add bzr to appveyor
sdboyer May 2, 2017
45ad6f2
Adding headers and bypass env var
krisnova May 2, 2017
fec78c1
Add todo for issue 501
krisnova May 2, 2017
5d76c5e
Adding bypass to fix tests for merge see #501
krisnova May 2, 2017
e32ee7e
Merge branch 'add-gps' of github.com:kris-nova/dep into add-gps
krisnova May 2, 2017
8c46be1
gofmt pkgtree
krisnova May 2, 2017
b3f0a3f
Redefining bypass as env: in .travis.yml
krisnova May 2, 2017
a592594
Adding DEPTESTBYPASS501 to appveyor
krisnova May 2, 2017
be427b5
Adding header to manager_test.go
krisnova May 2, 2017
ae5edaa
adding headers to internal/fs
krisnova May 2, 2017
a39f36d
Remove CI files, header image from gps
sdboyer May 3, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .codeclimate.yml
Expand Up @@ -8,3 +8,4 @@ ratings:
- "**.go"
exclude_paths:
- vendor/
- gps/_testdata
16 changes: 13 additions & 3 deletions .travis.yml
Expand Up @@ -13,22 +13,32 @@ matrix:
go: tip
- os: osx
go: 1.8.x
env:
# Flip bit to bypass tests - see dep#501 for more information
- DEPTESTBYPASS501=1
install:
- echo "This is an override of the default install deps step in travis."
before_script:
# OSX as of El Capitan sets an exit trap that interacts poorly with our
# set -e below. So, unset the trap.
# Related: https://superuser.com/questions/1044130/why-am-i-having-how-can-i-fix-this-error-shell-session-update-command-not-f
- if [[ "$(go env GOHOSTOS)" == "darwin" ]]; then trap EXIT; fi
- PKGS=$(go list ./... | grep -v /vendor/)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bzr; fi
- PKGS=$(go list ./... | grep -v /vendor/ | grep -v _testdata/ )
- go get -v honnef.co/go/tools/cmd/{gosimple,staticcheck}
- npm install -g codeclimate-test-reporter
script:
- go build -v ./cmd/dep
- staticcheck $PKGS
- go vet $PKGS
# TODO (kris-nova) remove the ignore flag once we can refactor the code causing problems
- staticcheck -ignore='github.com/golang/dep/cmd/dep/status.go:SA4010' $PKGS
#- ./hack/validate-gofmt.bash
- ./hack/validate-vendor.bash
- gosimple $PKGS
- set -e; for pkg in $PKGS; do go test -race -coverprofile=profile.out -covermode=atomic $pkg; if [[ -f profile.out ]]; then cat profile.out >> coverage.txt; rm profile.out; fi; done
#- go test -race $PKGS
- go build ./hack/licenseok
- set -e; for pkg in $PKGS; do go test -race -coverprofile=profile.out -covermode=atomic $pkg; if [[ -f profile.out ]]; then cat profile.out >> coverage.txt; rm profile.out; fi; done
- find . -path ./vendor -prune -o -type f -name "*.go" -printf '%P\n' | xargs ./licenseok
- ./hack/validate-vendor.bash
after_success:
Expand Down
12 changes: 3 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions Gopkg.toml
@@ -1,4 +1,3 @@
# Temporarily, until gps moves in and this becomes a direct dep again
required = ["github.com/Masterminds/semver"]

[[dependencies]]
Expand All @@ -7,7 +6,7 @@ required = ["github.com/Masterminds/semver"]

[[dependencies]]
name = "github.com/Masterminds/vcs"
version = "^1.8.0"
version = "^1.11.0"

[[dependencies]]
branch = "master"
Expand All @@ -16,7 +15,3 @@ required = ["github.com/Masterminds/semver"]
[[dependencies]]
name = "github.com/pkg/errors"
version = ">=0.8.0, <1.0.0"

[[dependencies]]
name = "github.com/sdboyer/gps"
version = ">=0.16.0, <1.0.0"
2 changes: 1 addition & 1 deletion analyzer.go
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"path/filepath"

"github.com/sdboyer/gps"
"github.com/golang/dep/gps"
)

type Analyzer struct{}
Expand Down
10 changes: 9 additions & 1 deletion appveyor.yml
Expand Up @@ -7,6 +7,7 @@ clone_folder: c:\gopath\src\github.com\golang\dep

environment:
GOPATH: c:\gopath
DEPTESTBYPASS501: 1
matrix:
- environment:
GOVERSION: 1.7.5
Expand All @@ -23,7 +24,8 @@ install:
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
- set Path=c:\go\bin;c:\gopath\bin;%Path%
- choco install bzr
- set Path=c:\go\bin;c:\gopath\bin;C:\Program Files (x86)\Bazaar\;C:\Program Files\Mercurial\%Path%
- go version
- go env

Expand All @@ -34,3 +36,9 @@ test_script:
- go build
- go test .
- go test ./cmd/dep
- go test ./gps
- go test ./gps/internal
- go test ./gps/internal/fs
- go test ./gps/pkgtree
- go test ./internal
- go test ./test
4 changes: 2 additions & 2 deletions cmd/dep/ensure.go
Expand Up @@ -17,10 +17,10 @@ import (
"strings"

"github.com/golang/dep"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"
"github.com/golang/dep/internal"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
)

const ensureShortHelp = `Ensure a dependency is safely vendored in the project`
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/ensure_test.go
Expand Up @@ -7,7 +7,7 @@ package main
import (
"testing"

"github.com/sdboyer/gps"
"github.com/golang/dep/gps"
)

func TestDeduceConstraint(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/hash_in.go
Expand Up @@ -9,9 +9,9 @@ import (
"fmt"

"github.com/golang/dep"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
)

func (cmd *hashinCommand) Name() string { return "hash-inputs" }
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/init.go
Expand Up @@ -13,10 +13,10 @@ import (
"strings"

"github.com/golang/dep"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"
"github.com/golang/dep/internal"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
)

const initShortHelp = `Initialize a new project with manifest and lock files`
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/init_test.go
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"
"testing"

"github.com/sdboyer/gps"
"github.com/golang/dep/gps"
)

func TestContains(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/prune.go
Expand Up @@ -12,8 +12,8 @@ import (
"os"

"github.com/golang/dep"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"

"github.com/pkg/errors"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/remove.go
Expand Up @@ -11,10 +11,10 @@ import (
"strings"

"github.com/golang/dep"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"
"github.com/golang/dep/internal"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
)

const removeShortHelp = `Remove a dependency from the project`
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/status.go
Expand Up @@ -16,9 +16,9 @@ import (
"text/tabwriter"

"github.com/golang/dep"
"github.com/golang/dep/gps"
"github.com/golang/dep/gps/pkgtree"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
"github.com/sdboyer/gps/pkgtree"
)

const statusShortHelp = `Report the status of the project's dependencies`
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/status_test.go
Expand Up @@ -7,7 +7,7 @@ package main
import (
"testing"

"github.com/sdboyer/gps"
"github.com/golang/dep/gps"
)

func TestStatusFormatVersion(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion context.go
Expand Up @@ -11,9 +11,9 @@ import (
"strings"

"github.com/Masterminds/vcs"
"github.com/golang/dep/gps"
"github.com/golang/dep/internal"
"github.com/pkg/errors"
"github.com/sdboyer/gps"
)

// Ctx defines the supporting context of the tool.
Expand Down
2 changes: 1 addition & 1 deletion context_test.go
Expand Up @@ -12,8 +12,8 @@ import (
"testing"
"unicode"

"github.com/golang/dep/gps"
"github.com/golang/dep/test"
"github.com/sdboyer/gps"
)

func TestNewContextNoGOPATH(t *testing.T) {
Expand Down
@@ -1,3 +1,7 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
Expand Down
6 changes: 6 additions & 0 deletions gps/_testdata/src/bad/bad.go
@@ -0,0 +1,6 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// This ill-formed Go source file is here to ensure the tool is robust
// against bad packages in the workspace.
17 changes: 17 additions & 0 deletions gps/_testdata/src/buildtag/invalid.go
@@ -0,0 +1,17 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Hello
// Not a valid +build ignore
// No Really

package buildtag

import (
"sort"
)

var (
_ = sort.Strings
)
15 changes: 15 additions & 0 deletions gps/_testdata/src/cycle/a.go
@@ -0,0 +1,15 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package cycle

import (
"cycle/one"
"github.com/golang/dep/gps"
)

var (
A = gps.Solve
B = one.A
)
15 changes: 15 additions & 0 deletions gps/_testdata/src/cycle/one/a.go
@@ -0,0 +1,15 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package one

import (
"cycle/two"
"github.com/golang/dep/gps"
)

var (
A = gps.Solve
B = two.A
)
15 changes: 15 additions & 0 deletions gps/_testdata/src/cycle/two/a.go
@@ -0,0 +1,15 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package two

import (
"cycle"
"github.com/golang/dep/gps"
)

var (
A = gps.Solve
B = cycle.A
)
16 changes: 16 additions & 0 deletions gps/_testdata/src/disallow/.m1p/a.go
@@ -0,0 +1,16 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package m1p

import (
"sort"

"github.com/golang/dep/gps"
)

var (
_ = sort.Strings
S = gps.Solve
)
15 changes: 15 additions & 0 deletions gps/_testdata/src/disallow/.m1p/b.go
@@ -0,0 +1,15 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package m1p

import (
"os"
"sort"
)

var (
_ = sort.Strings
_ = os.PathSeparator
)
18 changes: 18 additions & 0 deletions gps/_testdata/src/disallow/a.go
@@ -0,0 +1,18 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package disallow

import (
"disallow/testdata"
"sort"

"github.com/golang/dep/gps"
)

var (
_ = sort.Strings
_ = gps.Solve
_ = testdata.H
)
11 changes: 11 additions & 0 deletions gps/_testdata/src/disallow/testdata/another.go
@@ -0,0 +1,11 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package testdata

import "hash"

var (
H = hash.Hash
)