├── .codeclimate.yml ├── .gitattributes ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── AUTHORS ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── MAINTAINERS.md ├── Makefile ├── PATENTS ├── README.md ├── analyzer.go ├── analyzer_notwindows_test.go ├── analyzer_test.go ├── analyzer_windows_test.go ├── appveyor.yml ├── cmd └── dep │ ├── check.go │ ├── dep_test.go │ ├── doc.go │ ├── ensure.go │ ├── ensure_test.go │ ├── failures.go │ ├── feature_flags.go │ ├── gopath_scanner.go │ ├── gopath_scanner_test.go │ ├── graphviz.go │ ├── graphviz_test.go │ ├── init.go │ ├── integration_test.go │ ├── main.go │ ├── mkdoc.sh │ ├── prune.go │ ├── root_analyzer.go │ ├── status.go │ ├── status_test.go │ ├── testdata │ ├── cachedir │ │ ├── Gopkg.lock │ │ ├── Gopkg.toml │ │ └── main.go │ ├── graphviz │ │ ├── case1.dot │ │ ├── case2.dot │ │ ├── empty.dot │ │ ├── subgraph1.dot │ │ ├── subgraph2.dot │ │ ├── subgraph3.dot │ │ └── subgraph4.dot │ ├── harness_tests │ │ ├── README.md │ │ ├── check │ │ │ ├── excess_inputs │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── hash_mismatch │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ └── github.com │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ └── deptest │ │ │ │ │ │ └── deptest.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── hash_version_mismatch │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ └── github.com │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ └── deptest │ │ │ │ │ │ └── deptest.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── missing_and_excess │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── missing_inputs │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── noverify │ │ │ │ ├── hash_mismatch │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ ├── main.go │ │ │ │ │ │ └── vendor │ │ │ │ │ │ │ └── github.com │ │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ │ └── deptest │ │ │ │ │ │ │ └── deptest.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ ├── hash_version_mismatch │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ ├── main.go │ │ │ │ │ │ └── vendor │ │ │ │ │ │ │ └── github.com │ │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ │ └── deptest │ │ │ │ │ │ │ └── deptest.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ ├── missing_and_excess │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ ├── unmet_constraint │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ ├── unmet_override │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ └── vendororphans │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ ├── foo │ │ │ │ │ │ ├── github.com │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ │ └── deptest │ │ │ │ │ │ │ └── deptest.go │ │ │ │ │ │ └── orphdir │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ ├── pruneopts_changed │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ └── github.com │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ └── deptest │ │ │ │ │ │ └── deptest.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── unmet_constraint │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── unmet_override │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ └── vendororphans │ │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ ├── main.go │ │ │ │ └── vendor │ │ │ │ │ ├── foo │ │ │ │ │ ├── github.com │ │ │ │ │ └── sdboyer │ │ │ │ │ │ └── deptest │ │ │ │ │ │ └── deptest.go │ │ │ │ │ └── orphdir │ │ │ │ │ └── .gitkeep │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ ├── ensure │ │ │ ├── add │ │ │ │ ├── all-new-double-spec │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── all-new-double │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── all-new-spec │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── all-new │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── desync │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ │ ├── errs │ │ │ │ │ ├── double-diff-spec │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ ├── exists-manifest │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ ├── exists │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ ├── noarg │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ └── self-add │ │ │ │ │ │ ├── case1 │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ │ └── case2 │ │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ ├── exists-imports │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── exists-manifest-constraint │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ ├── default │ │ │ │ ├── errs │ │ │ │ │ ├── lockless-vendoronly │ │ │ │ │ │ ├── final │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ ├── initial │ │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ │ └── specargs │ │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ │ └── testcase.json │ │ │ │ ├── hasheq-dry │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── hasheq-novendor-dry │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── hasheq-novendor │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── hasheq │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── hashneq-vendoronly │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── nocode-vendoronly │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ └── testcase.json │ │ │ ├── empty │ │ │ │ ├── case1 │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── case2 │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── case3 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── samples │ │ │ │ │ │ └── samples.go │ │ │ │ │ └── testcase.json │ │ │ ├── noverify │ │ │ │ ├── hash_mismatch │ │ │ │ │ ├── README │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ ├── main.go │ │ │ │ │ │ └── vendor │ │ │ │ │ │ │ └── github.com │ │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ │ └── deptest │ │ │ │ │ │ │ ├── deptest.go │ │ │ │ │ │ │ └── extrafile │ │ │ │ │ └── testcase.json │ │ │ │ └── vendororphans │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ ├── foo │ │ │ │ │ │ ├── github.com │ │ │ │ │ │ └── sdboyer │ │ │ │ │ │ │ └── deptest │ │ │ │ │ │ │ └── deptest.go │ │ │ │ │ │ └── orphdir │ │ │ │ │ │ └── .gitkeep │ │ │ │ │ ├── stdout.txt │ │ │ │ │ └── testcase.json │ │ │ ├── pkg-errors │ │ │ │ ├── case1 │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ └── testcase.json │ │ │ │ └── case2 │ │ │ │ │ ├── final │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── bar │ │ │ │ │ │ └── bar.go │ │ │ │ │ └── baz │ │ │ │ │ │ └── .gitignore │ │ │ │ │ └── testcase.json │ │ │ ├── pkg-ignored │ │ │ │ ├── wildcard-ignore │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ ├── main.go │ │ │ │ │ │ └── samples │ │ │ │ │ │ │ ├── samples.go │ │ │ │ │ │ │ └── subsamples │ │ │ │ │ │ │ └── subsamples.go │ │ │ │ │ └── testcase.json │ │ │ │ └── wildcard-other-root │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ ├── main.go │ │ │ │ │ └── samples │ │ │ │ │ │ ├── samples.go │ │ │ │ │ │ └── subsamples │ │ │ │ │ │ └── subsamples.go │ │ │ │ │ └── testcase.json │ │ │ └── update │ │ │ │ ├── case1 │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ │ ├── desync │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ │ ├── errs │ │ │ │ ├── lockless │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── nonroot-arg │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── not-in-lock │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── spec-with-constraint │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── spec-with-source │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── novendor │ │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ ├── init │ │ │ ├── case1 │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.go │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── case2 │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.go │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── case3 │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.go │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── case4 │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.go │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── glide │ │ │ │ ├── case1 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ ├── main.go │ │ │ │ │ │ └── samples │ │ │ │ │ │ │ └── samples.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── case2 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── case3 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── case4 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── corrupt-glide │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── direct-trans-conflict │ │ │ │ │ ├── README.md │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── direct-trans-no-conflict │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── trans-trans-conflict │ │ │ │ │ ├── README.md │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json.ignore │ │ │ │ ├── trans-trans-trans │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ ├── trans-trans-unspecified │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ │ ├── glide.lock │ │ │ │ │ │ ├── glide.yaml │ │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ │ └── trans-trans │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── glide.lock │ │ │ │ │ ├── glide.yaml │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ ├── glock │ │ │ │ └── case1 │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── GLOCKFILE │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ ├── godep │ │ │ │ └── case1 │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── Godeps │ │ │ │ │ │ └── Godeps.json │ │ │ │ │ └── main.go │ │ │ │ │ └── testcase.json │ │ │ ├── govend │ │ │ │ └── case1 │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor.yml │ │ │ │ │ └── testcase.json │ │ │ ├── govendor │ │ │ │ └── case1 │ │ │ │ │ ├── README.md │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── main.go │ │ │ │ │ ├── samples │ │ │ │ │ │ └── samples.go │ │ │ │ │ └── vendor │ │ │ │ │ │ └── vendor.json │ │ │ │ │ └── testcase.json │ │ │ ├── gvt │ │ │ │ └── case1 │ │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ │ ├── initial │ │ │ │ │ ├── main.go │ │ │ │ │ └── vendor │ │ │ │ │ │ └── manifest │ │ │ │ │ └── testcase.json │ │ │ ├── manifest-exists │ │ │ │ ├── final │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ └── Gopkg.toml │ │ │ │ └── testcase.json │ │ │ ├── relative_path │ │ │ │ ├── final │ │ │ │ │ └── project_dir │ │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ └── project_dir │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.go │ │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── skip-hidden │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── .foo │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── _foo │ │ │ │ │ │ └── main.go │ │ │ │ │ ├── lib.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── main.go │ │ │ │ └── testcase.json │ │ │ ├── usage │ │ │ │ ├── with_h_flag │ │ │ │ │ └── testcase.json │ │ │ │ └── with_not_defined_flag │ │ │ │ │ └── testcase.json │ │ │ └── vndr │ │ │ │ └── case1 │ │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ ├── main.go │ │ │ │ └── vendor.conf │ │ │ │ └── testcase.json │ │ └── status │ │ │ ├── case1 │ │ │ ├── dot │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── json │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── table │ │ │ │ ├── final │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ │ ├── Gopkg.lock │ │ │ │ │ ├── Gopkg.toml │ │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ └── template │ │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ │ ├── stdout.txt │ │ │ │ └── testcase.json │ │ │ ├── missing_pkgs_lock_mismatch │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ └── testcase.json │ │ │ ├── old_constraints │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ ├── stdout.txt │ │ │ └── testcase.json │ │ │ ├── override_constraint │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ ├── stdout.txt │ │ │ └── testcase.json │ │ │ ├── revision_constraint │ │ │ ├── final │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ │ ├── initial │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── Gopkg.toml │ │ │ │ └── main.go │ │ │ ├── stdout.txt │ │ │ └── testcase.json │ │ │ └── without_lock │ │ │ ├── final │ │ │ └── Gopkg.toml │ │ │ ├── initial │ │ │ └── Gopkg.toml │ │ │ └── testcase.json │ ├── init │ │ └── directdeps │ │ │ └── main.go │ └── status │ │ └── collect_constraints │ │ └── main.go │ └── version.go ├── context.go ├── context_test.go ├── doc.go ├── docs ├── FAQ.md ├── Gopkg.lock.md ├── Gopkg.toml.md ├── assets │ ├── DigbyFlat.png │ ├── DigbyFlat.svg │ ├── DigbyFlatScene2.png │ ├── DigbyFlatScene2.svg │ ├── DigbyScene2Flat.png │ ├── DigbyScene2Flat.svg │ ├── DigbyScene2Shadows.png │ ├── DigbyScene2Shadows.svg │ ├── DigbyShadows.png │ ├── DigbyShadows.svg │ ├── DigbyShadowsScene2.png │ ├── DigbyShadowsScene2.svg │ ├── StatusGraph.png │ ├── annotated-func-arrows.png │ ├── base-arrows.png │ ├── four-states.png │ ├── func-toggles.png │ ├── in-sync.png │ ├── lock-back.png │ └── required-arrows.png ├── daily-dep.md ├── deduction.md ├── ensure-mechanics.md ├── env-vars.md ├── failure-modes.md ├── glossary.md ├── installation.md ├── introduction.md ├── migrating.md ├── new-project.md ├── the-solver.md └── uninstalling.md ├── gps ├── _testdata │ ├── badrepo │ │ ├── README.md │ │ └── corrupt_dot_git_directory.tar │ ├── cmd │ │ ├── echosleep │ │ │ └── echosleep.go │ │ └── stdout_stderr │ │ │ └── stdout_stderr.go │ ├── digest │ │ ├── github.com │ │ │ ├── alice │ │ │ │ ├── match │ │ │ │ │ └── match.go │ │ │ │ ├── mismatch │ │ │ │ │ └── mismatch.go │ │ │ │ └── notInLock │ │ │ │ │ └── notInLock.go │ │ │ └── bob │ │ │ │ ├── emptyDigest │ │ │ │ └── emptyDigest.go │ │ │ │ └── match │ │ │ │ └── match.go │ │ └── launchpad.net │ │ │ └── match │ │ │ └── match.go │ └── src │ │ ├── bad │ │ └── bad.go │ │ ├── buildtag │ │ └── invalid.go │ │ ├── canon_confl │ │ ├── a.go │ │ └── b.go │ │ ├── canonical │ │ ├── main.go │ │ └── sub │ │ │ └── sub.go │ │ ├── cycle │ │ ├── a.go │ │ ├── one │ │ │ └── a.go │ │ └── two │ │ │ └── a.go │ │ ├── disallow │ │ ├── a.go │ │ └── testdata │ │ │ └── another.go │ │ ├── dotgodir │ │ ├── .go │ │ │ ├── .gitkeep │ │ │ └── dot.go │ │ ├── .m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ └── foo.go │ │ │ ├── .gitkeep │ │ │ └── foo.go │ │ ├── doublenest │ │ ├── a.go │ │ └── namemismatch │ │ │ ├── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ │ └── nm.go │ │ ├── empty │ │ └── .gitkeep │ │ ├── github.com │ │ └── example │ │ │ └── varied │ │ │ ├── locals.go │ │ │ ├── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ │ ├── main.go │ │ │ ├── namemismatch │ │ │ └── nm.go │ │ │ ├── otherpath │ │ │ └── otherpath_test.go │ │ │ └── simple │ │ │ ├── another │ │ │ ├── another.go │ │ │ ├── another_test.go │ │ │ └── locals.go │ │ │ ├── locals.go │ │ │ └── simple.go │ │ ├── igmain │ │ ├── a.go │ │ └── igmain.go │ │ ├── igmainfirst │ │ ├── igmain.go │ │ └── z.go │ │ ├── igmainlong │ │ ├── a.go │ │ └── igmain.go │ │ ├── igmaint │ │ ├── a.go │ │ ├── igmain.go │ │ └── t_test.go │ │ ├── m1p │ │ ├── a.go │ │ └── b.go │ │ ├── missing │ │ ├── a.go │ │ └── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ ├── nest │ │ ├── a.go │ │ └── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ ├── relimport │ │ ├── a.go │ │ ├── dot │ │ │ └── a.go │ │ ├── dotdot │ │ │ └── a.go │ │ ├── dotdotslash │ │ │ └── a.go │ │ └── dotslash │ │ │ └── a.go │ │ ├── ren │ │ ├── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ └── simple │ │ │ └── a.go │ │ ├── simple │ │ └── a.go │ │ ├── simpleallt │ │ ├── a.go │ │ ├── a_test.go │ │ └── t_test.go │ │ ├── simplet │ │ ├── a.go │ │ └── t_test.go │ │ ├── simplext │ │ ├── a.go │ │ └── a_test.go │ │ ├── skip_ │ │ ├── _a.go │ │ └── a.go │ │ ├── slash-star_confl │ │ ├── a.go │ │ └── b.go │ │ ├── t │ │ └── t_test.go │ │ ├── twopkgs │ │ ├── a.go │ │ └── b.go │ │ ├── varied │ │ ├── locals.go │ │ ├── m1p │ │ │ ├── a.go │ │ │ └── b.go │ │ ├── main.go │ │ ├── namemismatch │ │ │ └── nm.go │ │ ├── otherpath │ │ │ └── otherpath_test.go │ │ └── simple │ │ │ ├── another │ │ │ ├── another.go │ │ │ ├── another_test.go │ │ │ └── locals.go │ │ │ ├── locals.go │ │ │ └── simple.go │ │ ├── varied_hidden │ │ ├── .onlyfromtests │ │ │ ├── a.go │ │ │ └── b.go │ │ ├── _frommain │ │ │ └── a.go │ │ ├── _never │ │ │ └── a.go │ │ ├── _secondorder │ │ │ └── secondorder.go │ │ ├── always │ │ │ └── always_test.go │ │ ├── dotdotslash │ │ │ └── a.go │ │ ├── locals.go │ │ ├── main.go │ │ └── simple │ │ │ ├── locals.go │ │ │ ├── simple.go │ │ │ └── testdata │ │ │ └── another.go │ │ └── xt │ │ └── a_test.go ├── bridge.go ├── cmd.go ├── cmd_unix.go ├── cmd_windows.go ├── constraint.go ├── constraint_test.go ├── deduce.go ├── deduce_test.go ├── discovery.go ├── doc.go ├── error.go ├── example.go ├── filesystem.go ├── filesystem_test.go ├── identifier.go ├── internal │ └── pb │ │ ├── pb.go │ │ ├── source_cache.pb.go │ │ └── source_cache.proto ├── lock.go ├── lock_test.go ├── manager_test.go ├── manifest.go ├── manifest_test.go ├── maybe_source.go ├── maybe_source_test.go ├── metrics.go ├── paths │ ├── paths.go │ └── paths_test.go ├── pkgtree │ ├── ignored_ruleset.go │ ├── ignored_ruleset_test.go │ ├── pkgtree.go │ ├── pkgtree_test.go │ └── reachmap.go ├── prune.go ├── prune_test.go ├── rootdata.go ├── rootdata_test.go ├── satisfy.go ├── selection.go ├── selection_test.go ├── solution.go ├── solution_test.go ├── solve_basic_test.go ├── solve_bimodal_test.go ├── solve_failures.go ├── solve_test.go ├── solver.go ├── solver_inputs_test.go ├── source.go ├── source_cache.go ├── source_cache_bolt.go ├── source_cache_bolt_encode.go ├── source_cache_bolt_encode_test.go ├── source_cache_bolt_test.go ├── source_cache_multi.go ├── source_cache_test.go ├── source_errors.go ├── source_errors_test.go ├── source_manager.go ├── source_manager_test.go ├── source_test.go ├── strings.go ├── trace.go ├── typed_radix.go ├── typed_radix_test.go ├── vcs_repo.go ├── vcs_repo_test.go ├── vcs_source.go ├── vcs_source_test.go ├── vcs_version.go ├── vcs_version_test.go ├── verify │ ├── digest.go │ ├── digest_test.go │ ├── helper_types_test.go │ ├── lock.go │ ├── lockdiff.go │ ├── lockdiff_test.go │ ├── locksat.go │ └── locksat_test.go ├── version.go ├── version_queue.go ├── version_queue_test.go └── version_test.go ├── hack ├── build-all.bash ├── coverage.bash ├── licenseok │ └── main.go ├── lint.bash ├── test.bash ├── validate-gofmt.bash └── validate-licence.bash ├── install.sh ├── internal ├── feedback │ ├── feedback.go │ ├── feedback_test.go │ ├── lockdiff.go │ └── lockdiff_test.go ├── fs │ ├── fs.go │ ├── fs_test.go │ ├── rename.go │ ├── rename_windows.go │ └── testdata │ │ ├── symlinks │ │ ├── file-symlink │ │ ├── invalid-symlink │ │ └── windows-file-symlink │ │ └── test.file ├── importers │ ├── base │ │ ├── importer.go │ │ └── importer_test.go │ ├── glide │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── glide.lock │ │ │ ├── glide.yaml │ │ │ └── golden.txt │ ├── glock │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── GLOCKFILE │ │ │ └── golden.txt │ ├── godep │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── Godeps.json │ │ │ └── golden.txt │ ├── govend │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── golden.txt │ │ │ └── vendor.yml │ ├── govendor │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── golden.txt │ │ │ └── vendor.json │ ├── gvt │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ │ ├── golden.txt │ │ │ └── manifest │ ├── importers.go │ ├── importertest │ │ ├── testcase.go │ │ └── testdata.go │ └── vndr │ │ ├── importer.go │ │ ├── importer_test.go │ │ └── testdata │ │ ├── golden.txt │ │ └── vendor.conf └── test │ ├── integration │ ├── testcase.go │ └── testproj.go │ ├── test.go │ └── writer.go ├── lock.go ├── lock_test.go ├── manifest.go ├── manifest_test.go ├── project.go ├── project_test.go ├── test_project_context_test.go ├── testdata ├── analyzer │ └── Gopkg.toml ├── lock │ ├── error0.toml │ ├── error1.toml │ ├── error2.toml │ ├── golden0.toml │ └── golden1.toml ├── manifest │ ├── error1.toml │ ├── error2.toml │ ├── error3.toml │ └── golden.toml ├── rootfind │ ├── Gopkg.toml │ └── subdir │ │ └── .gitkeep └── txn_writer │ ├── badinput_fileroot │ ├── expected_diff_output.txt │ ├── expected_lock.toml │ └── expected_manifest.toml ├── txn_writer.go ├── txn_writer_test.go ├── vendor ├── github.com │ ├── Masterminds │ │ ├── semver │ │ │ ├── LICENSE.txt │ │ │ ├── collection.go │ │ │ ├── constraints.go │ │ │ ├── doc.go │ │ │ ├── error.go │ │ │ ├── magic.go │ │ │ ├── parse.go │ │ │ ├── range.go │ │ │ ├── union.go │ │ │ └── version.go │ │ └── vcs │ │ │ ├── LICENSE.txt │ │ │ ├── bzr.go │ │ │ ├── errors.go │ │ │ ├── git.go │ │ │ ├── hg.go │ │ │ ├── repo.go │ │ │ ├── svn.go │ │ │ ├── vcs_local_lookup.go │ │ │ └── vcs_remote_lookup.go │ ├── armon │ │ └── go-radix │ │ │ ├── LICENSE │ │ │ └── radix.go │ ├── boltdb │ │ └── bolt │ │ │ ├── LICENSE │ │ │ ├── bolt_386.go │ │ │ ├── bolt_amd64.go │ │ │ ├── bolt_arm.go │ │ │ ├── bolt_arm64.go │ │ │ ├── bolt_linux.go │ │ │ ├── bolt_openbsd.go │ │ │ ├── bolt_ppc.go │ │ │ ├── bolt_ppc64.go │ │ │ ├── bolt_ppc64le.go │ │ │ ├── bolt_s390x.go │ │ │ ├── bolt_unix.go │ │ │ ├── bolt_unix_solaris.go │ │ │ ├── bolt_windows.go │ │ │ ├── boltsync_unix.go │ │ │ ├── bucket.go │ │ │ ├── cursor.go │ │ │ ├── db.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── freelist.go │ │ │ ├── node.go │ │ │ ├── page.go │ │ │ └── tx.go │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ └── proto │ │ │ ├── clone.go │ │ │ ├── decode.go │ │ │ ├── discard.go │ │ │ ├── encode.go │ │ │ ├── equal.go │ │ │ ├── extensions.go │ │ │ ├── lib.go │ │ │ ├── message_set.go │ │ │ ├── pointer_reflect.go │ │ │ ├── pointer_unsafe.go │ │ │ ├── properties.go │ │ │ ├── text.go │ │ │ └── text_parser.go │ ├── google │ │ └── go-cmp │ │ │ ├── LICENSE │ │ │ └── cmp │ │ │ ├── compare.go │ │ │ ├── internal │ │ │ ├── diff │ │ │ │ ├── debug_disable.go │ │ │ │ ├── debug_enable.go │ │ │ │ └── diff.go │ │ │ ├── function │ │ │ │ └── func.go │ │ │ └── value │ │ │ │ ├── format.go │ │ │ │ └── sort.go │ │ │ ├── options.go │ │ │ ├── path.go │ │ │ ├── reporter.go │ │ │ ├── unsafe_panic.go │ │ │ └── unsafe_reflect.go │ ├── jmank88 │ │ └── nuts │ │ │ ├── LICENSE │ │ │ ├── key.go │ │ │ ├── nuts.go │ │ │ ├── paths.go │ │ │ └── types.go │ ├── nightlyone │ │ └── lockfile │ │ │ ├── LICENSE │ │ │ ├── lockfile.go │ │ │ ├── lockfile_unix.go │ │ │ └── lockfile_windows.go │ ├── pelletier │ │ └── go-toml │ │ │ ├── LICENSE │ │ │ ├── doc.go │ │ │ ├── fuzz.go │ │ │ ├── keysparsing.go │ │ │ ├── lexer.go │ │ │ ├── marshal.go │ │ │ ├── parser.go │ │ │ ├── position.go │ │ │ ├── token.go │ │ │ ├── toml.go │ │ │ ├── tomltree_create.go │ │ │ └── tomltree_write.go │ ├── pkg │ │ └── errors │ │ │ ├── LICENSE │ │ │ ├── errors.go │ │ │ └── stack.go │ └── sdboyer │ │ └── constext │ │ ├── LICENSE │ │ └── constext.go ├── golang.org │ └── x │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── context │ │ │ ├── context.go │ │ │ ├── go17.go │ │ │ ├── go19.go │ │ │ ├── pre_go17.go │ │ │ └── pre_go19.go │ │ ├── sync │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── errgroup │ │ │ └── errgroup.go │ │ └── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── unix │ │ ├── asm_darwin_386.s │ │ ├── asm_darwin_amd64.s │ │ ├── asm_darwin_arm.s │ │ ├── asm_darwin_arm64.s │ │ ├── asm_dragonfly_amd64.s │ │ ├── asm_freebsd_386.s │ │ ├── asm_freebsd_amd64.s │ │ ├── asm_freebsd_arm.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_netbsd_386.s │ │ ├── asm_netbsd_amd64.s │ │ ├── asm_netbsd_arm.s │ │ ├── asm_openbsd_386.s │ │ ├── asm_openbsd_amd64.s │ │ ├── asm_openbsd_arm.s │ │ ├── asm_solaris_amd64.s │ │ ├── bluetooth_linux.go │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_linux.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── env_unset.go │ │ ├── errors_freebsd_386.go │ │ ├── errors_freebsd_amd64.go │ │ ├── errors_freebsd_arm.go │ │ ├── file_unix.go │ │ ├── flock.go │ │ ├── flock_linux_32bit.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── gccgo_linux_sparc64.go │ │ ├── mkpost.go │ │ ├── openbsd_pledge.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_386.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_no_getwd.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── types_darwin.go │ │ ├── types_dragonfly.go │ │ ├── types_freebsd.go │ │ ├── types_netbsd.go │ │ ├── types_openbsd.go │ │ ├── types_solaris.go │ │ ├── zerrors_darwin_386.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zsyscall_darwin_386.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_arm.go │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsysctl_openbsd.go │ │ ├── zsysnum_darwin_386.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_solaris_amd64.go │ │ ├── ztypes_darwin_386.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ └── ztypes_solaris_amd64.go └── gopkg.in │ └── yaml.v2 │ ├── LICENSE │ ├── LICENSE.libyaml │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── website ├── .gitignore ├── blog ├── 2018-01-23-announce-v0.4.0.md └── 2018-07-25-announce-v0.5.0.md ├── core └── Footer.js ├── i18n └── en.json ├── package-lock.json ├── package.json ├── pages └── en │ ├── help.js │ ├── index.js │ └── users.js ├── sidebars.json ├── siteConfig.js ├── static └── css │ └── custom.css └── yarn.lock /.gitattributes: -------------------------------------------------------------------------------- 1 | # Prevent problems comparing golden files on Windows 2 | **/testdata/** text eol=lf 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dep project generated files to ignore 2 | # if you want to ignore files created by your editor/tools, 3 | # please consider a global .gitignore https://help.github.com/articles/ignoring-files 4 | # please do not open a pull request to add something created by your editor or tools 5 | /dep 6 | /testdep 7 | /dep.exe 8 | /licenseok 9 | /profile.out 10 | /coverage.txt 11 | release/ 12 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /cmd/dep/mkdoc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2017 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | set -e 7 | 8 | go build -o dep.latest 9 | ./dep.latest help documentation >doc.go 10 | gofmt -w doc.go 11 | rm dep.latest 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/cachedir/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/cachedir/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/graphviz/case1.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | node [shape=box]; 3 | 4106060478 [label="project"]; 4 | 2851307223 [label="foo\nmaster"]; 5 | 1991736602 [label="bar\ndev"]; 6 | 4106060478 -> 2851307223; 7 | 4106060478 -> 1991736602; 8 | 2851307223 -> 1991736602; 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/graphviz/case2.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | node [shape=box]; 3 | 4106060478 [label="project"]; 4 | } 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/graphviz/empty.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | node [shape=box]; 3 | } 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos", 10 | ] 11 | solver-name = "gps-cdcl" 12 | solver-version = 1 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/excess_inputs/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos", 10 | ] 11 | solver-name = "gps-cdcl" 12 | solver-version = 1 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/excess_inputs/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest: in Gopkg.lock's input-imports, but neither imported nor required 3 | 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/excess_inputs/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/hash_mismatch/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/hash_mismatch/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/stdout.txt: -------------------------------------------------------------------------------- 1 | # vendor is out of sync: 2 | github.com/sdboyer/deptest: hash of vendored tree not equal to digest in Gopkg.lock 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/hash_version_mismatch/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/hash_version_mismatch/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/stdout.txt: -------------------------------------------------------------------------------- 1 | # vendor is out of sync: 2 | github.com/sdboyer/deptest: hash algorithm mismatch, want version 1 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/hash_version_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = ["github.com/sdboyer/deptest"] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/missing_and_excess/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = ["github.com/sdboyer/deptest"] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/missing_and_excess/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptestdos: imported or required, but missing from Gopkg.lock's input-imports 3 | github.com/sdboyer/deptest: in Gopkg.lock's input-imports, but neither imported nor required 4 | 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_and_excess/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/missing_inputs/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/missing_inputs/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptestdos: imported or required, but missing from Gopkg.lock's input-imports 3 | 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/missing_inputs/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/stdout.txt: -------------------------------------------------------------------------------- 1 | # out of sync, but ignored, due to noverify in Gopkg.toml: 2 | github.com/sdboyer/deptest: hash of vendored tree not equal to digest in Gopkg.lock 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/stdout.txt: -------------------------------------------------------------------------------- 1 | # out of sync, but ignored, due to noverify in Gopkg.toml: 2 | github.com/sdboyer/deptest: hash algorithm mismatch, want version 1 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/hash_version_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = ["github.com/sdboyer/deptest"] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = ["github.com/sdboyer/deptest"] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptestdos: imported or required, but missing from Gopkg.lock's input-imports 3 | github.com/sdboyer/deptest: in Gopkg.lock's input-imports, but neither imported nor required 4 | 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/missing_and_excess/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptestdos"] 2 | 3 | [[constraint]] 4 | name = "github.com/sdboyer/deptest" 5 | branch = "master" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptestdos"] 2 | 3 | [[constraint]] 4 | name = "github.com/sdboyer/deptest" 5 | branch = "master" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_constraint/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest@v1.0.0: not allowed by constraint master 3 | 4 | # vendor is out of sync: 5 | github.com/sdboyer/deptest: missing from vendor 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_override/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | 3 | [[override]] 4 | name = "github.com/sdboyer/deptest" 5 | branch = "master" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_override/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | 3 | [[override]] 4 | name = "github.com/sdboyer/deptest" 5 | branch = "master" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_override/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_override/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest@v1.0.0: not allowed by override master 3 | 4 | # vendor is out of sync: 5 | github.com/sdboyer/deptest: missing from vendor 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/unmet_override/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/vendor/foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/vendor/foo -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/vendor/orphdir/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/noverify/vendororphans/initial/vendor/orphdir/.gitkeep -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/stdout.txt: -------------------------------------------------------------------------------- 1 | # vendor is out of sync: 2 | foo: orphaned file 3 | orphdir: unused project 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/noverify/vendororphans/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/pruneopts_changed/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/pruneopts_changed/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/pruneopts_changed/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/pruneopts_changed/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest: prune options changed ( -> UT) 3 | 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/pruneopts_changed/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | branch = "master" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | branch = "master" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_constraint/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest@v1.0.0: not allowed by constraint master 3 | 4 | # vendor is out of sync: 5 | github.com/sdboyer/deptest: missing from vendor 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_override/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[override]] 2 | name = "github.com/sdboyer/deptest" 3 | branch = "master" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_override/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[override]] 2 | name = "github.com/sdboyer/deptest" 3 | branch = "master" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_override/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_override/stdout.txt: -------------------------------------------------------------------------------- 1 | # Gopkg.lock is out of sync: 2 | github.com/sdboyer/deptest@v1.0.0: not allowed by override master 3 | 4 | # vendor is out of sync: 5 | github.com/sdboyer/deptest: missing from vendor 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/unmet_override/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/vendororphans/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/vendororphans/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/initial/vendor/foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/vendororphans/initial/vendor/foo -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/initial/vendor/orphdir/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/check/vendororphans/initial/vendor/orphdir/.gitkeep -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/stdout.txt: -------------------------------------------------------------------------------- 1 | # vendor is out of sync: 2 | foo: orphaned file 3 | orphdir: unused project 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/check/vendororphans/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["check"] 4 | ], 5 | "should-fail": true, 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double-spec/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptesttres" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | 10 | [[constraint]] 11 | name = "github.com/sdboyer/deptest" 12 | version = "0.8.1" 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double-spec/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double-spec/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"], 4 | ["ensure", "-add", "github.com/sdboyer/deptest", "github.com/sdboyer/deptest@v0.8.1"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest", 8 | "github.com/sdboyer/deptesttres" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | 10 | [[constraint]] 11 | branch = "master" 12 | name = "github.com/sdboyer/deptesttres" 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | type a deptest.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-double/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"], 4 | ["ensure", "-add", "github.com/sdboyer/deptesttres", "github.com/sdboyer/deptesttres/subp"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest", 8 | "github.com/sdboyer/deptesttres" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-spec/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptesttres" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | 10 | [[constraint]] 11 | name = "github.com/sdboyer/deptest" 12 | version = "0.8.1" 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-spec/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new-spec/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"], 4 | ["ensure", "-add", "github.com/sdboyer/deptest@v0.8.1"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest", 8 | "github.com/sdboyer/deptesttres" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptesttres" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | 10 | [[constraint]] 11 | name = "github.com/sdboyer/deptest" 12 | version = "1.0.0" 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/all-new/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"], 4 | ["ensure", "-add", "github.com/sdboyer/deptest"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest", 8 | "github.com/sdboyer/deptesttres" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/desync/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" 4 | [[constraint]] 5 | branch = "master" 6 | name = "github.com/sdboyer/deptesttres" 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/desync/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/desync/stdout.txt: -------------------------------------------------------------------------------- 1 | Fetching sources... 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/desync/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/sdboyer/deptesttres@master"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest", 7 | "github.com/sdboyer/deptestdos", 8 | "github.com/sdboyer/deptesttres" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/double-diff-spec/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptesttres" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/double-diff-spec/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists-manifest/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptesttres" 3 | branch = "master" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "1.0.0" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists-manifest/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptesttres" 3 | branch = "master" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "1.0.0" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists-manifest/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists-manifest/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/sdboyer/deptest@1.0.0"] 4 | ], 5 | "error-expected": "Gopkg.toml already contains rules for github.com/sdboyer/deptest, cannot specify a version constraint" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/exists/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/sdboyer/deptest"] 4 | ], 5 | "error-expected": "nothing to -add, github.com/sdboyer/deptest is already in Gopkg.toml and the project's direct imports or required list" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/noarg/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/noarg/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/noarg/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add"] 4 | ], 5 | "error-expected": "must specify at least one project or package to -add" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case1/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/golang/notexist"] 4 | ], 5 | "error-expected": "cannot add current project to itself" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case2/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case2/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [prune] 3 | go-tests = true 4 | unused-packages = true 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case2/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | func main() {} 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/errs/self-add/case2/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"], 4 | ["ensure", "-add", "github.com/golang/notexist"] 5 | ], 6 | "error-expected": "cannot add current project to itself" 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-imports/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptesttres" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-imports/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/add/exists-imports/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-imports/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-imports/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/sdboyer/deptesttres@master"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptesttres" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptesttres" 3 | branch = "master" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "1.0.0" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptesttres" 3 | branch = "master" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "1.0.0" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptesttres" 9 | ) 10 | 11 | func main() { 12 | type a deptesttres.Bar 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-add", "github.com/sdboyer/deptest"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest", 7 | "github.com/sdboyer/deptesttres" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/lockless-vendoronly/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/lockless-vendoronly/final/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/lockless-vendoronly/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/lockless-vendoronly/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/lockless-vendoronly/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-vendor-only"] 4 | ], 5 | "error-expected": "no Gopkg.lock exists from which to populate vendor/" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/specargs/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/specargs/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/specargs/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/errs/specargs/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "foobar.com/baz"] 4 | ], 5 | "error-expected": "dep ensure only takes spec arguments with -add or -update" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-dry/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-dry/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-dry/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-dry/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-dry-run"] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor-dry/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor-dry/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor-dry/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor-dry/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-no-vendor", "-dry-run"] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq-novendor/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-no-vendor"] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hasheq/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hashneq-vendoronly/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hashneq-vendoronly/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hashneq-vendoronly/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/hashneq-vendoronly/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-vendor-only"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/nocode-vendoronly/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/nocode-vendoronly/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/default/nocode-vendoronly/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-vendor-only"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-skip-tools", "-no-examples"], 4 | ["ensure", "-update"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case2/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case2/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case2/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case2/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/README.md: -------------------------------------------------------------------------------- 1 | Validate that packages imported in an ignored package are not 2 | included in the manifest or lock. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/sdboyer/deptestdos"] 2 | 3 | [[constraint]] 4 | branch = "master" 5 | name = "github.com/sdboyer/deptest" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/sdboyer/deptestdos"] 2 | 3 | [[constraint]] 4 | branch = "master" 5 | name = "github.com/sdboyer/deptest" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/samples/samples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package samples 6 | 7 | import _ "github.com/sdboyer/deptestdos" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/empty/case3/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/README: -------------------------------------------------------------------------------- 1 | This is a hack - it's effectively just verifying that the Gopkg.lock doesn't 2 | change for projects with noverify set, which (under the current logic) is an 3 | indicator that vendor wasn't updated. 4 | 5 | Of course, that vendor -> lock relationship isn't guaranteed to hold... 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["github.com/sdboyer/deptest"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/vendor/github.com/sdboyer/deptest/extrafile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/vendor/github.com/sdboyer/deptest/extrafile -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["check"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["foo", "orphdir"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | noverify = ["foo", "orphdir"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/vendor/foo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/vendor/foo -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/vendor/github.com/sdboyer/deptest/deptest.go: -------------------------------------------------------------------------------- 1 | package deptest 2 | 3 | type Foo int 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/vendor/orphdir/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/initial/vendor/orphdir/.gitkeep -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/stdout.txt: -------------------------------------------------------------------------------- 1 | # out of sync, but ignored, due to noverify in Gopkg.toml: 2 | foo: orphaned file 3 | orphdir: unused project 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/noverify/vendororphans/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["check"] 5 | ], 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case1/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [prune] 3 | go-tests = true 4 | unused-packages = true 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-skip-tools"], 4 | ["ensure", "-update"] 5 | ], 6 | "error-expected": "no dirs contained any Go code", 7 | "vendor-final": [] 8 | } 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/initial/bar/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/initial/baz/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/initial/baz/.gitignore -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-errors/case2/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "error-expected": "found 1 errors", 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/golang/notexist/samples*"] 2 | 3 | [[constraint]] 4 | branch = "master" 5 | name = "github.com/sdboyer/deptest" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7" 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/golang/notexist/samples*"] 2 | 3 | [[constraint]] 4 | branch = "master" 5 | name = "github.com/sdboyer/deptest" 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/initial/samples/samples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package samples 6 | 7 | import _ "github.com/sdboyer/deptestdos" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/initial/samples/subsamples/subsamples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package subsamples 6 | 7 | import _ "github.com/sdboyer/dep-test" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/sdboyer/deptest*", "github.com/golang/notexist/samples*"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7" 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/sdboyer/deptest*", "github.com/golang/notexist/samples*"] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/samples/samples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package samples 6 | 7 | import _ "github.com/sdboyer/deptestdos" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/samples/subsamples/subsamples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package subsamples 6 | 7 | import _ "github.com/sdboyer/dep-test" 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/case1/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "github.com/sdboyer/deptest"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest", 8 | "github.com/sdboyer/deptestdos" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/desync/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/desync/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "~0.8.0" -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/desync/stdout.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/ensure/update/desync/stdout.txt -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/desync/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/sdboyer/deptest", 7 | "github.com/sdboyer/deptestdos" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/lockless/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/lockless/final/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/lockless/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/lockless/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/lockless/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update"] 4 | ], 5 | "error-expected": "-update works by updating the versions recorded in Gopkg.lock, but Gopkg.lock does not exist" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/nonroot-arg/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/nonroot-arg/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/nonroot-arg/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/nonroot-arg/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "github.com/sdboyer/deptest/subpkg"] 4 | ], 5 | "error-expected": "github.com/sdboyer/deptest/subpkg is not a project root, try github.com/sdboyer/deptest instead" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/not-in-lock/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/not-in-lock/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/not-in-lock/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/not-in-lock/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "github.com/sdboyer/deptesttres"] 4 | ], 5 | "error-expected": "github.com/sdboyer/deptesttres is not present in Gopkg.lock, cannot -update it" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "github.com/sdboyer/deptest:github.com/other/deptest"] 4 | ], 5 | "error-expected": "cannot specify alternate sources on -update (github.com/other/deptest)" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-source/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-source/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "1.0.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-source/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | _ := deptest.Map["yo yo!"] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/errs/spec-with-source/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "github.com/sdboyer/deptest@1.0.0"] 4 | ], 5 | "error-expected": "version constraint ^1.0.0 passed for github.com/sdboyer/deptest, but -update follows constraints declared in" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/novendor/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/novendor/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/novendor/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptest" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/ensure/update/novendor/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure", "-update", "-no-vendor"] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "0.8.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case1/initial/foo/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case2/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "0.8.0" 5 | 6 | [[constraint]] 7 | name = "github.com/sdboyer/deptestdos" 8 | version = "2.0.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case2/initial/foo/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case2/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-skip-tools", "-gopath"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "v0.8.0" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case3/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptest" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case3/initial/foo/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case3/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-skip-tools", "-gopath"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptestdos": "a0196baa11ea047dd65037287451d36b861b00ea" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case4/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [[constraint]] 7 | name = "github.com/sdboyer/deptestdos" 8 | version = "2.0.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case4/initial/foo/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/case4/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "gopath-initial": { 6 | "github.com/sdboyer/deptestdos": "a0196baa11ea047dd65037287451d36b861b00ea" 7 | }, 8 | "vendor-final": [ 9 | "github.com/sdboyer/deptest", 10 | "github.com/sdboyer/deptestdos" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case1/README.md: -------------------------------------------------------------------------------- 1 | Import glide config at project root. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = [ 2 | "github.com/golang/notexist/samples", 3 | "github.com/sdboyer/dep-test", 4 | ] 5 | 6 | [[constraint]] 7 | name = "github.com/sdboyer/deptestdos" 8 | version = "2.0.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case1/initial/samples/samples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package samples 6 | 7 | import dt "github.com/carolynvs/go-dep-test" 8 | 9 | func Sample1() int { 10 | var x = dt.Thing 11 | return x 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case2/README.md: -------------------------------------------------------------------------------- 1 | Ignore glide config at root when -skip-tools is specified. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case2/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case2/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case3/README.md: -------------------------------------------------------------------------------- 1 | Import glide config in direct dependencies. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case3/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/carolynvs/deptestglide" 4 | version = "0.1.1" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case3/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/carolynvs/deptestglide" 11 | ) 12 | 13 | func main() { 14 | var x = deptestglide.MyFoo 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case3/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": {}, 7 | "vendor-final": [ 8 | "github.com/carolynvs/deptestglide", 9 | "github.com/sdboyer/deptest" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case4/README.md: -------------------------------------------------------------------------------- 1 | Ignore glide config if glide.yaml is malformed and cannot be parsed correctly. 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case4/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/case4/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/README.md: -------------------------------------------------------------------------------- 1 | Import deptestglideA tag v0.3.0 which has a corrupt glide manifest. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/ChinmayR/deptestglideA" 4 | version = "0.3.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: cead75b1cde64ae1353ddbf73f6089303d6001b4 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/initial/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/golang/notexist 2 | homepage: http://example.com 3 | license: MIT 4 | owners: 5 | - name: Sam Boyer 6 | email: sdboyer@example.com 7 | homepage: http://sdboyer.io 8 | import: 9 | - package: github.com/ChinmayR/deptestglideA 10 | version: v0.3.0 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/ChinmayR/deptestglideA" 9 | ) 10 | 11 | type PointToDepTestGlideAv010 deptestglideA.Bversion2 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/corrupt-glide/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/ChinmayR/deptestglideA", 7 | "github.com/ChinmayR/deptestglideB", 8 | "github.com/ChinmayR/deptestglideC" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-conflict/README.md: -------------------------------------------------------------------------------- 1 | Take a direct dependency on a transient dependency where the versions are conflicted. Resolving should fail. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-conflict/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 81d7d7ca66af42280af949bcae1347e228c8d346 6 | - name: github.com/ChinmayR/deptestglideB 7 | version: 143bb0e8f4cc3a3227a2d250f99d08ee879c7909 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-conflict/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "error-expected": "master: Could not introduce github.com/ChinmayR/deptestglideA@master, as it is not allowed by constraint ^0.1.0 from project github.com/golang/notexist." 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-no-conflict/README.md: -------------------------------------------------------------------------------- 1 | Take a direct dependency on a transient dependency where the versions are not conflicted. Resolving should pass. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-no-conflict/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/ChinmayR/deptestglideA" 4 | version = "0.2.0" 5 | 6 | [[constraint]] 7 | name = "github.com/ChinmayR/deptestglideB" 8 | version = "0.2.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-no-conflict/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 26ab0f16d85723be5ff44e5b4bd2a8e0f3a34989 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/direct-trans-no-conflict/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/ChinmayR/deptestglideA", 7 | "github.com/ChinmayR/deptestglideB" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-conflict/README.md: -------------------------------------------------------------------------------- 1 | Have two transient dependencies have different versions of the same repo. Resolving should fail. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-conflict/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 703f28fdee407d70dcc4cb774a0fbb82fa70daa9 6 | - name: github.com/ChinmayR/deptestglideB 7 | version: 7f8abdec9e29a008d40cfcbb0848b82cc4000d25 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-conflict/initial/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/golang/notexist 2 | homepage: http://example.com 3 | license: MIT 4 | owners: 5 | - name: Sam Boyer 6 | email: sdboyer@example.com 7 | homepage: http://sdboyer.io 8 | import: 9 | - package: github.com/ChinmayR/deptestglideA 10 | version: v0.4.0 11 | - package: github.com/ChinmayR/deptestglideB 12 | version: v0.3.0 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-conflict/testcase.json.ignore: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "error-expected": "No versions of github.com/ChinmayR/deptestglideB met constraints" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/README.md: -------------------------------------------------------------------------------- 1 | Test if a transitive glide manifest is read. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/ChinmayR/deptestglideA" 4 | version = "0.6.0" 5 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 120a353fc5706d8b5c0cca93b01606ed37a2247a 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/initial/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/golang/notexist 2 | homepage: http://example.com 3 | license: MIT 4 | owners: 5 | - name: Sam Boyer 6 | email: sdboyer@example.com 7 | homepage: http://sdboyer.io 8 | import: 9 | - package: github.com/ChinmayR/deptestglideA 10 | version: v0.6.0 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "github.com/ChinmayR/deptestglideA" 9 | ) 10 | 11 | type PointToDepTestGlideAv010 deptestglideA.PointToDepTestGlideBv050 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/ChinmayR/deptestglideA", 7 | "github.com/ChinmayR/deptestglideB", 8 | "github.com/ChinmayR/deptestglideC" 9 | ], 10 | "feature": "ImportDuringSolve" 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-unspecified/README.md: -------------------------------------------------------------------------------- 1 | Have two direct dependencies where one specifies a direct transient version, 2 | and the other can take any transient but overlapping version. Resolving should pass. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-unspecified/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/ChinmayR/deptestglideA" 4 | version = "0.4.0" 5 | 6 | [[constraint]] 7 | name = "github.com/ChinmayR/deptestglideB" 8 | version = "0.4.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-unspecified/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 703f28fdee407d70dcc4cb774a0fbb82fa70daa9 6 | - name: github.com/ChinmayR/deptestglideB 7 | version: 55b6737d9d84461196123a51baa02b156abc4543 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans-unspecified/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/ChinmayR/deptestglideA", 7 | "github.com/ChinmayR/deptestglideB", 8 | "github.com/ChinmayR/deptestglideC" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans/README.md: -------------------------------------------------------------------------------- 1 | Have two direct dependencies where one specifies a direct transient version, 2 | and the other specified a greater than version. Both versions overlap so resolving should pass. -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/ChinmayR/deptestglideA" 4 | version = "0.5.0" 5 | 6 | [[constraint]] 7 | name = "github.com/ChinmayR/deptestglideB" 8 | version = "0.3.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans/initial/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 16053c82a71f9bd509b05a4523df6bc418aed2083e4b8bd97a870bbc003256f8 2 | updated: 2017-03-07T17:02:32.214383898-06:00 3 | imports: 4 | - name: github.com/ChinmayR/deptestglideA 5 | version: 2f77d68963bb3dff94b88330d930cb59714cd2fc 6 | - name: github.com/ChinmayR/deptestglideB 7 | version: 7f8abdec9e29a008d40cfcbb0848b82cc4000d25 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans/initial/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/golang/notexist 2 | homepage: http://example.com 3 | license: MIT 4 | owners: 5 | - name: Sam Boyer 6 | email: sdboyer@example.com 7 | homepage: http://sdboyer.io 8 | import: 9 | - package: github.com/ChinmayR/deptestglideA 10 | version: v0.5.0 11 | - package: github.com/ChinmayR/deptestglideB 12 | version: v0.3.0 -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glide/trans-trans/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-v"] 4 | ], 5 | "vendor-final": [ 6 | "github.com/ChinmayR/deptestglideA", 7 | "github.com/ChinmayR/deptestglideB", 8 | "github.com/ChinmayR/deptestglideC" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glock/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glock/case1/initial/GLOCKFILE: -------------------------------------------------------------------------------- 1 | cmd github.com/golang/lint 2 | github.com/sdboyer/deptest 3f4c3bea144e112a69bbe5d8d01c1b09a544253f 3 | github.com/sdboyer/deptestdos 5c607206be5decd28e6263ffffdcee067266015e 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glock/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/glock/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/godep/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/godep/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/godep/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govend/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govend/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govend/case1/initial/vendor.yml: -------------------------------------------------------------------------------- 1 | vendors: 2 | - path: github.com/sdboyer/deptest 3 | rev: 3f4c3bea144e112a69bbe5d8d01c1b09a544253f 4 | - path: github.com/sdboyer/deptestdos 5 | rev: 5c607206be5decd28e6263ffffdcee067266015e 6 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govend/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govendor/case1/README.md: -------------------------------------------------------------------------------- 1 | Import govendor config in vendor dir. 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govendor/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | ignored = [ 2 | "github.com/golang/notexist/samples*", 3 | "github.com/sdboyer/dep-test*", 4 | ] 5 | 6 | [[constraint]] 7 | name = "github.com/sdboyer/deptestdos" 8 | version = "2.0.0" 9 | 10 | [prune] 11 | go-tests = true 12 | unused-packages = true 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govendor/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/govendor/case1/initial/samples/samples.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package samples 6 | 7 | import dt "github.com/carolynvs/go-dep-test" 8 | 9 | func Sample1() int { 10 | var x = dt.Thing 11 | return x 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/gvt/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/manifest-exists/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/init/manifest-exists/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/manifest-exists/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/init/manifest-exists/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/manifest-exists/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init"] 4 | ], 5 | "error-expected": "init aborted: manifest already exists", 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/relative_path/final/project_dir/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/sdboyer/deptest" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/relative_path/initial/project_dir/foo/bar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/relative_path/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-skip-tools", "project_dir"] 4 | ], 5 | "error-expected": "", 6 | "init-path": "project_dir" 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/skip-hidden/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptest" 4 | version = "1.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/skip-hidden/initial/lib.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package foo 6 | 7 | import "github.com/sdboyer/deptest" 8 | 9 | func Foo() deptest.Foo { 10 | var y deptest.Foo 11 | 12 | return y 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/skip-hidden/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples", "-skip-tools"] 4 | ], 5 | "error-expected": "", 6 | "vendor-final": [ 7 | "github.com/sdboyer/deptest" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/usage/with_h_flag/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-h"] 4 | ], 5 | "error-expected": "Usage: dep init [root]" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/usage/with_not_defined_flag/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-not-defined-flag"] 4 | ], 5 | "error-expected": "flag provided but not defined: -not-defined-flag\nUsage: dep init [root]" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/vndr/case1/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/sdboyer/deptestdos" 4 | version = "2.0.0" 5 | 6 | [prune] 7 | go-tests = true 8 | unused-packages = true 9 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/vndr/case1/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/sdboyer/deptestdos" 11 | ) 12 | 13 | func main() { 14 | var x deptestdos.Bar 15 | fmt.Println(x) 16 | } 17 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/vndr/case1/initial/vendor.conf: -------------------------------------------------------------------------------- 1 | # Comment on its own line 2 | github.com/sdboyer/deptest 3f4c3bea144e112a69bbe5d8d01c1b09a544253f https://github.com/sdboyer/deptest.git 3 | github.com/sdboyer/deptestdos v2.0.0 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/init/vndr/case1/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["init", "-no-examples"] 4 | ], 5 | "error-expected": "", 6 | "gopath-initial": { 7 | "github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f" 8 | }, 9 | "vendor-final": [ 10 | "github.com/sdboyer/deptest", 11 | "github.com/sdboyer/deptestdos" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/dot/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/dot/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/dot/stdout.txt: -------------------------------------------------------------------------------- 1 | digraph { 2 | node [shape=box]; 3 | 388407825 [label="github.com/golang/notexist"]; 4 | 2304687900 [label="github.com/sdboyer/deptest\nv0.8.0"]; 5 | 2659405890 [label="github.com/sdboyer/deptestdos\nv2.0.0"]; 6 | 388407825 -> 2304687900; 7 | 388407825 -> 2659405890; 8 | 2659405890 -> 2304687900; 9 | } 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/dot/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status", "-dot"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/json/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/json/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/json/stdout.txt: -------------------------------------------------------------------------------- 1 | [{"ProjectRoot":"github.com/sdboyer/deptest","Constraint":"^0.8.0","Version":"v0.8.0","Revision":"ff2948a2ac8f538c4ecd55962e919d1e13e74baf","Latest":"v0.8.1","PackageCount":1},{"ProjectRoot":"github.com/sdboyer/deptestdos","Constraint":"v2.0.0","Version":"v2.0.0","Revision":"5c607206be5decd28e6263ffffdcee067266015e","Latest":"v2.0.0","PackageCount":1}] 2 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/json/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status", "-json"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/table/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/table/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/table/stdout.txt: -------------------------------------------------------------------------------- 1 | PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED 2 | github.com/sdboyer/deptest ^0.8.0 v0.8.0 ff2948a v0.8.1 1 3 | github.com/sdboyer/deptestdos v2.0.0 v2.0.0 5c60720 v2.0.0 1 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/table/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/template/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/template/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "^0.8.0" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/template/stdout.txt: -------------------------------------------------------------------------------- 1 | PROJECT: github.com/sdboyer/deptest, VERSION: v0.8.0 2 | PROJECT: github.com/sdboyer/deptestdos, VERSION: v2.0.0 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/case1/template/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status", "-f=PROJECT: {{.ProjectRoot}}, VERSION: {{.Version}}\n"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/final/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7" 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/initial/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7" 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/missing_pkgs_lock_mismatch/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["status"] 4 | ], 5 | "error-expected": "is out of sync with imports", 6 | "vendor-final": [] 7 | } 8 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/old_constraints/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptestdos" 3 | version = "v2.0.0" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "v1.0.0" 8 | 9 | [[constraint]] 10 | name = "github.com/carolynvs/go-dep-test" 11 | version = "v0.1.0" 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/old_constraints/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptestdos" 3 | version = "v2.0.0" 4 | 5 | [[constraint]] 6 | name = "github.com/sdboyer/deptest" 7 | version = "v1.0.0" 8 | 9 | [[constraint]] 10 | name = "github.com/carolynvs/go-dep-test" 11 | version = "v0.1.0" 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/old_constraints/stdout.txt: -------------------------------------------------------------------------------- 1 | PROJECT CONSTRAINT REVISION LATEST 2 | github.com/carolynvs/go-dep-test ^0.1.0 b9c5511 4069198 3 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/old_constraints/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status", "-old"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/carolynvs/go-dep-test", 9 | "github.com/sdboyer/deptest", 10 | "github.com/sdboyer/deptestdos" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/override_constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[override]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "=0.8.1" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/override_constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[override]] 2 | name = "github.com/sdboyer/deptest" 3 | version = "=0.8.1" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/override_constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/override_constraint/stdout.txt: -------------------------------------------------------------------------------- 1 | PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED 2 | github.com/sdboyer/deptest v0.8.1 (override) v0.8.1 3f4c3be v0.8.1 1 3 | github.com/sdboyer/deptestdos v2.0.0 v2.0.0 5c60720 v2.0.0 1 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/override_constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/revision_constraint/final/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptestdos" 3 | revision = "a0196baa11ea047dd65037287451d36b861b00ea" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/revision_constraint/initial/Gopkg.toml: -------------------------------------------------------------------------------- 1 | [[constraint]] 2 | name = "github.com/sdboyer/deptestdos" 3 | revision = "a0196baa11ea047dd65037287451d36b861b00ea" 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/revision_constraint/initial/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "github.com/sdboyer/deptestdos" 9 | ) 10 | 11 | func main() { 12 | } 13 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/revision_constraint/stdout.txt: -------------------------------------------------------------------------------- 1 | PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED 2 | github.com/sdboyer/deptest v1.0.0 v1.0.0 ff2948a v1.0.0 1 3 | github.com/sdboyer/deptestdos a0196ba a0196ba 1 4 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/revision_constraint/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["ensure"], 4 | ["status"] 5 | ], 6 | "error-expected": "", 7 | "vendor-final": [ 8 | "github.com/sdboyer/deptest", 9 | "github.com/sdboyer/deptestdos" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/without_lock/final/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/status/without_lock/final/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/without_lock/initial/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/cmd/dep/testdata/harness_tests/status/without_lock/initial/Gopkg.toml -------------------------------------------------------------------------------- /cmd/dep/testdata/harness_tests/status/without_lock/testcase.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": [ 3 | ["status"] 4 | ], 5 | "error-expected": "no Gopkg.lock found. Run `dep ensure` to generate lock file" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/dep/testdata/init/directdeps/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import _ "github.com/carolynvs/deptest-subpkg/subby" 8 | 9 | func main() {} 10 | -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package dep is a prototype dependency management library. 6 | package dep 7 | -------------------------------------------------------------------------------- /docs/assets/DigbyFlat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyFlat.png -------------------------------------------------------------------------------- /docs/assets/DigbyFlatScene2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyFlatScene2.png -------------------------------------------------------------------------------- /docs/assets/DigbyScene2Flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyScene2Flat.png -------------------------------------------------------------------------------- /docs/assets/DigbyScene2Shadows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyScene2Shadows.png -------------------------------------------------------------------------------- /docs/assets/DigbyShadows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyShadows.png -------------------------------------------------------------------------------- /docs/assets/DigbyShadowsScene2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/DigbyShadowsScene2.png -------------------------------------------------------------------------------- /docs/assets/StatusGraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/StatusGraph.png -------------------------------------------------------------------------------- /docs/assets/annotated-func-arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/annotated-func-arrows.png -------------------------------------------------------------------------------- /docs/assets/base-arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/base-arrows.png -------------------------------------------------------------------------------- /docs/assets/four-states.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/four-states.png -------------------------------------------------------------------------------- /docs/assets/func-toggles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/func-toggles.png -------------------------------------------------------------------------------- /docs/assets/in-sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/in-sync.png -------------------------------------------------------------------------------- /docs/assets/lock-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/lock-back.png -------------------------------------------------------------------------------- /docs/assets/required-arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/docs/assets/required-arrows.png -------------------------------------------------------------------------------- /gps/_testdata/badrepo/corrupt_dot_git_directory.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/gps/_testdata/badrepo/corrupt_dot_git_directory.tar -------------------------------------------------------------------------------- /gps/_testdata/cmd/stdout_stderr/stdout_stderr.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "os" 9 | ) 10 | 11 | func main() { 12 | os.Stdout.WriteString("stdout") 13 | os.Stderr.WriteString("stderr") 14 | } 15 | -------------------------------------------------------------------------------- /gps/_testdata/digest/github.com/alice/match/match.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package match 6 | -------------------------------------------------------------------------------- /gps/_testdata/digest/github.com/alice/mismatch/mismatch.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package mismatch 6 | -------------------------------------------------------------------------------- /gps/_testdata/digest/github.com/alice/notInLock/notInLock.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package notInLock 6 | -------------------------------------------------------------------------------- /gps/_testdata/digest/github.com/bob/emptyDigest/emptyDigest.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package emptyDigest 6 | -------------------------------------------------------------------------------- /gps/_testdata/digest/github.com/bob/match/match.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package match 6 | -------------------------------------------------------------------------------- /gps/_testdata/digest/launchpad.net/match/match.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package match 6 | -------------------------------------------------------------------------------- /gps/_testdata/src/bad/bad.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // This ill-formed Go source file is here to ensure the tool is robust 6 | // against bad packages in the workspace. 7 | -------------------------------------------------------------------------------- /gps/_testdata/src/buildtag/invalid.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Hello 6 | // Not a valid +build ignore 7 | // No Really 8 | 9 | package buildtag 10 | 11 | import ( 12 | "sort" 13 | ) 14 | 15 | var ( 16 | _ = sort.Strings 17 | ) 18 | -------------------------------------------------------------------------------- /gps/_testdata/src/canon_confl/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package canonical // import "vanity1" 6 | 7 | var ( 8 | A = "A" 9 | ) 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/canon_confl/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package canonical // import "vanity2" 6 | 7 | var ( 8 | B = "B" 9 | ) 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/canonical/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pkg // import "canonical" 6 | 7 | var ( 8 | A = "A" 9 | ) 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/canonical/sub/sub.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package sub // import "canonical/subpackage" 6 | -------------------------------------------------------------------------------- /gps/_testdata/src/cycle/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cycle 6 | 7 | import ( 8 | "cycle/one" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | A = gps.Solve 15 | B = one.A 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/cycle/one/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package one 6 | 7 | import ( 8 | "cycle/two" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | A = gps.Solve 15 | B = two.A 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/cycle/two/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package two 6 | 7 | import ( 8 | "cycle" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | A = gps.Solve 15 | B = cycle.A 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/disallow/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package disallow 6 | 7 | import ( 8 | "disallow/testdata" 9 | "sort" 10 | 11 | "github.com/golang/dep/gps" 12 | ) 13 | 14 | var ( 15 | _ = sort.Strings 16 | _ = gps.Solve 17 | _ = testdata.H 18 | ) 19 | -------------------------------------------------------------------------------- /gps/_testdata/src/disallow/testdata/another.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package testdata 6 | 7 | import "hash" 8 | 9 | var ( 10 | H = hash.Hash 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/dotgodir/.go/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/gps/_testdata/src/dotgodir/.go/.gitkeep -------------------------------------------------------------------------------- /gps/_testdata/src/dotgodir/.go/dot.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dot 6 | 7 | // nothing to see here 8 | -------------------------------------------------------------------------------- /gps/_testdata/src/dotgodir/.m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | S = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/dotgodir/.m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/dotgodir/foo.go/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/gps/_testdata/src/dotgodir/foo.go/.gitkeep -------------------------------------------------------------------------------- /gps/_testdata/src/doublenest/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package base 6 | 7 | import ( 8 | "go/parser" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = parser.ParseFile 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/doublenest/namemismatch/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/doublenest/namemismatch/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/doublenest/namemismatch/nm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package nm 6 | 7 | import ( 8 | "os" 9 | 10 | "github.com/Masterminds/semver" 11 | ) 12 | 13 | var ( 14 | V = os.FileInfo 15 | _ = semver.Constraint 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/empty/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/gps/_testdata/src/empty/.gitkeep -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | M = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "net/http" 9 | ) 10 | 11 | var ( 12 | _ = http.Client 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/namemismatch/nm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package nm 6 | 7 | import ( 8 | "os" 9 | 10 | "github.com/Masterminds/semver" 11 | ) 12 | 13 | var ( 14 | V = os.FileInfo 15 | _ = semver.Constraint 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/otherpath/otherpath_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package otherpath 6 | 7 | import "github.com/example/varied/m1p" 8 | 9 | var O = m1p.M 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/simple/another/another.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "hash" 8 | 9 | var ( 10 | H = hash.Hash 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/simple/another/another_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "encoding/binary" 8 | 9 | var ( 10 | _ = binary.PutVarint 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/simple/another/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "github.com/example/varied/m1p" 8 | 9 | var _ = m1p.M 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/simple/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import "github.com/example/varied/simple/another" 8 | 9 | var ( 10 | _ = another.H 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/github.com/example/varied/simple/simple.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "go/parser" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = parser.ParseFile 15 | S = gps.Prepare 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmain/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmain/igmain.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | import "unicode" 10 | 11 | var _ = unicode.In 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmainfirst/igmain.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | import "unicode" 10 | 11 | var _ = unicode.In 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmainfirst/z.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmainlong/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmainlong/igmain.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Another comment, which the parser should ignore and still see builds tags 6 | 7 | // +build ignore 8 | 9 | package main 10 | 11 | import "unicode" 12 | 13 | var _ = unicode.In 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmaint/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmaint/igmain.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | import "unicode" 10 | 11 | var _ = unicode.In 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/igmaint/t_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "math/rand" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = rand.Int() 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/missing/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "missing/missing" 11 | 12 | "github.com/golang/dep/gps" 13 | ) 14 | 15 | var ( 16 | _ = sort.Strings 17 | _ = gps.Solve 18 | _ = missing.Foo 19 | ) 20 | -------------------------------------------------------------------------------- /gps/_testdata/src/missing/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/missing/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/nest/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/nest/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/nest/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/relimport/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package relimport 6 | 7 | import ( 8 | "sort" 9 | ) 10 | 11 | var ( 12 | A = sort.Strings 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/relimport/dot/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dot 6 | 7 | import ( 8 | "." 9 | "sort" 10 | ) 11 | 12 | var ( 13 | A = sort.Strings 14 | ) 15 | -------------------------------------------------------------------------------- /gps/_testdata/src/relimport/dotdot/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dotdot 6 | 7 | import ( 8 | relimport ".." 9 | ) 10 | 11 | var ( 12 | A = relimport.A 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/relimport/dotdotslash/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dotslash 6 | 7 | import ( 8 | "../github.com/golang/dep/gps" 9 | ) 10 | 11 | var ( 12 | A = gps.Solver 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/relimport/dotslash/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dotslash 6 | 7 | import ( 8 | "./simple" 9 | ) 10 | 11 | var ( 12 | A = simple.A 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/ren/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/ren/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/ren/simple/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/simple/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/simpleallt/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/simpleallt/a_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple_test 6 | 7 | import ( 8 | "sort" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/simpleallt/t_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "math/rand" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = rand.Int() 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/simplet/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/simplet/t_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "math/rand" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = rand.Int() 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/simplext/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/simplext/a_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple_test 6 | 7 | import ( 8 | "sort" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/skip_/_a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package skip 6 | 7 | import ( 8 | "bytes" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = bytes.Buffer 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/skip_/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package skip 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/slash-star_confl/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package canonical /* import "vanity1" */ 6 | 7 | var ( 8 | A = "A" 9 | ) 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/slash-star_confl/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package canonical /* import "vanity2" */ 6 | 7 | var ( 8 | B = "B" 9 | ) 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/t/t_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "math/rand" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = rand.Int() 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/twopkgs/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/twopkgs/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "varied/namemismatch" 9 | "varied/otherpath" 10 | "varied/simple" 11 | ) 12 | 13 | var ( 14 | _ = simple.S 15 | _ = nm.V 16 | _ = otherpath.O 17 | ) 18 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/m1p/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | M = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/m1p/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package m1p 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "net/http" 9 | ) 10 | 11 | var ( 12 | _ = http.Client 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/namemismatch/nm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package nm 6 | 7 | import ( 8 | "os" 9 | 10 | "github.com/Masterminds/semver" 11 | ) 12 | 13 | var ( 14 | V = os.FileInfo 15 | _ = semver.Constraint 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/otherpath/otherpath_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package otherpath 6 | 7 | import "varied/m1p" 8 | 9 | var O = m1p.M 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/simple/another/another.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "hash" 8 | 9 | var ( 10 | H = hash.Hash 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/simple/another/another_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "encoding/binary" 8 | 9 | var ( 10 | _ = binary.PutVarint 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/simple/another/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package another 6 | 7 | import "varied/m1p" 8 | 9 | var _ = m1p.M 10 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/simple/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import "varied/simple/another" 8 | 9 | var ( 10 | _ = another.H 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied/simple/simple.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "go/parser" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = parser.ParseFile 15 | S = gps.Prepare 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/.onlyfromtests/b.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package onlyfromtests 6 | 7 | import ( 8 | "os" 9 | "sort" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = os.PathSeparator 15 | ) 16 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/_frommain/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package frommain 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | M = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/_never/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package never 6 | 7 | import ( 8 | "sort" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | M = sort.Strings 15 | _ = gps.Solve 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/_secondorder/secondorder.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package secondorder 6 | 7 | import "hash" 8 | 9 | var ( 10 | H = hash.Hash 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/always/always_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package always 6 | 7 | import _ "varied/.onlyfromtests" 8 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/dotdotslash/a.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package dotslash 6 | 7 | import ( 8 | "../github.com/golang/dep/gps" 9 | ) 10 | 11 | var ( 12 | A = gps.Solver 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | _ "varied/_frommain" 9 | "varied/simple" 10 | ) 11 | 12 | var ( 13 | _ = simple.S 14 | ) 15 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import ( 8 | "net/http" 9 | ) 10 | 11 | var ( 12 | _ = http.Client 13 | ) 14 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/simple/locals.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import "varied/simple/testdata" 8 | 9 | var ( 10 | _ = testdata.H 11 | ) 12 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/simple/simple.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple 6 | 7 | import ( 8 | "go/parser" 9 | 10 | "github.com/golang/dep/gps" 11 | ) 12 | 13 | var ( 14 | _ = parser.ParseFile 15 | S = gps.Prepare 16 | ) 17 | -------------------------------------------------------------------------------- /gps/_testdata/src/varied_hidden/simple/testdata/another.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package testdata 6 | 7 | import _ "varied/dotdotslash" 8 | -------------------------------------------------------------------------------- /gps/_testdata/src/xt/a_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simple_test 6 | 7 | import ( 8 | "sort" 9 | "strconv" 10 | ) 11 | 12 | var ( 13 | _ = sort.Strings 14 | _ = strconv.Unquote 15 | ) 16 | -------------------------------------------------------------------------------- /gps/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package gps is a Go packaging solver library. 6 | package gps 7 | -------------------------------------------------------------------------------- /gps/internal/pb/pb.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package pb provides generated Protocol Buffers for cache serialization. 6 | package pb 7 | 8 | //go:generate protoc --go_out=. source_cache.proto 9 | -------------------------------------------------------------------------------- /hack/lint.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2017 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | # 6 | # This script will validate code with various linters 7 | set -e 8 | 9 | PKGS=$(go list ./... | grep -vF /vendor/) 10 | go vet $PKGS 11 | golint $PKGS 12 | staticcheck $PKGS 13 | -------------------------------------------------------------------------------- /internal/fs/testdata/symlinks/file-symlink: -------------------------------------------------------------------------------- 1 | ../test.file -------------------------------------------------------------------------------- /internal/fs/testdata/symlinks/invalid-symlink: -------------------------------------------------------------------------------- 1 | /non/existing/file -------------------------------------------------------------------------------- /internal/fs/testdata/symlinks/windows-file-symlink: -------------------------------------------------------------------------------- 1 | C:/Users/ibrahim/go/src/github.com/golang/dep/internal/fs/testdata/test.file -------------------------------------------------------------------------------- /internal/fs/testdata/test.file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/internal/fs/testdata/test.file -------------------------------------------------------------------------------- /internal/importers/glock/testdata/GLOCKFILE: -------------------------------------------------------------------------------- 1 | cmd github.com/golang/lint 2 | github.com/sdboyer/deptest 3f4c3bea144e112a69bbe5d8d01c1b09a544253f 3 | github.com/sdboyer/deptestdos 5c607206be5decd28e6263ffffdcee067266015e 4 | -------------------------------------------------------------------------------- /internal/importers/govend/testdata/vendor.yml: -------------------------------------------------------------------------------- 1 | vendors: 2 | - path: github.com/sdboyer/deptest 3 | rev: 3f4c3bea144e112a69bbe5d8d01c1b09a544253f 4 | - path: github.com/sdboyer/deptestdos 5 | rev: 5c607206be5decd28e6263ffffdcee067266015e 6 | 7 | -------------------------------------------------------------------------------- /internal/importers/vndr/testdata/vendor.conf: -------------------------------------------------------------------------------- 1 | github.com/sdboyer/deptest 3f4c3bea144e112a69bbe5d8d01c1b09a544253f https://github.com/sdboyer/deptest.git # trailing comment 2 | # line comment 3 | 4 | github.com/sdboyer/deptestdos v2.0.0 # trailing comment 5 | -------------------------------------------------------------------------------- /testdata/analyzer/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | name = "github.com/golang/dep" 4 | version = ">=0.12.0, <1.0.0" 5 | 6 | [[constraint]] 7 | name = "github.com/pkg/errors" 8 | version = ">=0.8.0, <1.0.0" 9 | -------------------------------------------------------------------------------- /testdata/lock/error0.toml: -------------------------------------------------------------------------------- 1 | [[projects]] 2 | name = "github.com/golang/dep" 3 | branch = "master" 4 | version = "v0.12.0" 5 | revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" 6 | packages = ["."] 7 | -------------------------------------------------------------------------------- /testdata/lock/error1.toml: -------------------------------------------------------------------------------- 1 | [[projects]] 2 | name = "github.com/golang/dep" 3 | branch = "master" 4 | revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" 5 | packages = ["."] 6 | digest = "1:000aaa2a285ab27944a4d7adcba8dbd03980f59ba652f12db39fa93b927c345593e" 7 | -------------------------------------------------------------------------------- /testdata/lock/error2.toml: -------------------------------------------------------------------------------- 1 | [[projects]] 2 | name = "github.com/golang/dep" 3 | packages = ["."] 4 | -------------------------------------------------------------------------------- /testdata/lock/golden0.toml: -------------------------------------------------------------------------------- 1 | 2 | [[projects]] 3 | branch = "master" 4 | digest = "1:666f6f" 5 | name = "github.com/golang/dep" 6 | packages = ["."] 7 | pruneopts = "" 8 | revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" 9 | 10 | [solve-meta] 11 | analyzer-name = "" 12 | analyzer-version = 0 13 | input-imports = [] 14 | solver-name = "" 15 | solver-version = 0 16 | -------------------------------------------------------------------------------- /testdata/lock/golden1.toml: -------------------------------------------------------------------------------- 1 | 2 | [[projects]] 3 | digest = "1:666f6f" 4 | name = "github.com/golang/dep" 5 | packages = ["."] 6 | pruneopts = "NUT" 7 | revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb" 8 | version = "0.12.2" 9 | 10 | [solve-meta] 11 | analyzer-name = "" 12 | analyzer-version = 0 13 | input-imports = [] 14 | solver-name = "" 15 | solver-version = 0 16 | -------------------------------------------------------------------------------- /testdata/manifest/error2.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/foo/bar"] 2 | 3 | [[constraint]] 4 | name = "github.com/golang/dep" 5 | branch = "master" 6 | 7 | [[constraint]] 8 | name = "github.com/golang/dep" 9 | branch = "master" 10 | -------------------------------------------------------------------------------- /testdata/manifest/error3.toml: -------------------------------------------------------------------------------- 1 | ignored = ["github.com/foo/bar"] 2 | 3 | [[override]] 4 | name = "github.com/golang/dep" 5 | branch = "master" 6 | 7 | [[override]] 8 | name = "github.com/golang/dep" 9 | branch = "master" 10 | -------------------------------------------------------------------------------- /testdata/rootfind/Gopkg.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/testdata/rootfind/Gopkg.toml -------------------------------------------------------------------------------- /testdata/rootfind/subdir/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/testdata/rootfind/subdir/.gitkeep -------------------------------------------------------------------------------- /testdata/txn_writer/badinput_fileroot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/golang/dep/f13583b555deaa6742f141a9c1185af947720d60/testdata/txn_writer/badinput_fileroot -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_386.go: -------------------------------------------------------------------------------- 1 | package bolt 2 | 3 | // maxMapSize represents the largest mmap size supported by Bolt. 4 | const maxMapSize = 0x7FFFFFFF // 2GB 5 | 6 | // maxAllocSize is the size used when creating array pointers. 7 | const maxAllocSize = 0xFFFFFFF 8 | 9 | // Are unaligned load/stores broken on this arch? 10 | var brokenUnaligned = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_amd64.go: -------------------------------------------------------------------------------- 1 | package bolt 2 | 3 | // maxMapSize represents the largest mmap size supported by Bolt. 4 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 5 | 6 | // maxAllocSize is the size used when creating array pointers. 7 | const maxAllocSize = 0x7FFFFFFF 8 | 9 | // Are unaligned load/stores broken on this arch? 10 | var brokenUnaligned = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_arm64.go: -------------------------------------------------------------------------------- 1 | // +build arm64 2 | 3 | package bolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | 11 | // Are unaligned load/stores broken on this arch? 12 | var brokenUnaligned = false 13 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_linux.go: -------------------------------------------------------------------------------- 1 | package bolt 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | // fdatasync flushes written data to a file descriptor. 8 | func fdatasync(db *DB) error { 9 | return syscall.Fdatasync(int(db.file.Fd())) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_ppc.go: -------------------------------------------------------------------------------- 1 | // +build ppc 2 | 3 | package bolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0x7FFFFFFF // 2GB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0xFFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_ppc64.go: -------------------------------------------------------------------------------- 1 | // +build ppc64 2 | 3 | package bolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | 11 | // Are unaligned load/stores broken on this arch? 12 | var brokenUnaligned = false 13 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_ppc64le.go: -------------------------------------------------------------------------------- 1 | // +build ppc64le 2 | 3 | package bolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | 11 | // Are unaligned load/stores broken on this arch? 12 | var brokenUnaligned = false 13 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/bolt_s390x.go: -------------------------------------------------------------------------------- 1 | // +build s390x 2 | 3 | package bolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | 11 | // Are unaligned load/stores broken on this arch? 12 | var brokenUnaligned = false 13 | -------------------------------------------------------------------------------- /vendor/github.com/boltdb/bolt/boltsync_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!plan9,!linux,!openbsd 2 | 3 | package bolt 4 | 5 | // fdatasync flushes written data to a file descriptor. 6 | func fdatasync(db *DB) error { 7 | return db.file.Sync() 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/jmank88/nuts/nuts.go: -------------------------------------------------------------------------------- 1 | // Package nuts is a collection of utilities for BoltDB (https://github.com/boltdb/bolt). 2 | package nuts 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /website/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | build/ 4 | node_modules/ 5 | 6 | i18n/* 7 | !i18n/en.json 8 | 9 | lib/core/metadata.js 10 | lib/core/MetadataBlog.js 11 | -------------------------------------------------------------------------------- /website/sidebars.json: -------------------------------------------------------------------------------- 1 | { 2 | "docs": { 3 | "Guides": ["introduction", "installation", "new-project", "migrating", "daily-dep", "uninstalling"], 4 | "References": ["ensure-mechanics", "failure-modes", "the-solver", "deduction", "Gopkg.toml", "Gopkg.lock", "FAQ", "env-vars", "glossary"] 5 | } 6 | } 7 | --------------------------------------------------------------------------------