Граф коммитов

371 Коммитов

Автор SHA1 Сообщение Дата
Carolyn Van Slyck d3135b8a1e Add MarshalTOML to manifest and lock 2017-04-04 21:10:43 -05:00
Carolyn Van Slyck 49136f2ce4 Vendor pelletier/go-toml TOM library and deps
github.com/pelletier/go-toml@fee7787d3f811af92276f5ff10107092e95b7a1d
 - Can't use latest release, it has a show-stopping bug in ToTomlString
github.com/pelletier/go-buffruneio@v0.2.0
2017-04-04 21:10:12 -05:00
sam boyer 4105d3adb9 Merge pull request #361 from sdboyer/chase-gps
Update gps to v0.15.0
2017-04-01 21:47:13 -04:00
sam boyer f6afedc85a Bump gps constraint 2017-04-01 21:23:41 -04:00
sam boyer 0f73d4bd59 Merge pull request #345 from carolynvs/stacktraces-4-everybody
Wrap error so the test prints the stack trace
2017-03-31 21:27:37 -04:00
sam boyer b40845bef9 Use patch wildcards in travis; re-add OSX 2017-03-31 21:26:15 -04:00
sam boyer 891815486d Update lock memo to address bootstrapping problem
The memo was invalid because it was generated with an old version of
dep, but the changes in this changeset result in different memos.
2017-03-31 21:18:34 -04:00
sam boyer 9c9f382b5b Update gps to v0.15.0
This requires an update to the lock fixtures, as memos have changed due
to abandoning semver versions for plain ints in
gps.ProjectAnalyzer.Info().
2017-03-31 15:42:55 -04:00
sam boyer 66a1ecc563 Update to v0.14.3 of gps, 1.11.0 of vcs 2017-03-31 15:33:46 -04:00
Carolyn Van Slyck cfc2c9470b Swap fmt.Errorf with errors.Errorf
I ♥️ stack traces
2017-03-22 11:07:48 -05:00
Carolyn Van Slyck 3a2a4cf79b Wrap error so the test prints the stack trace 2017-03-21 15:14:08 -05:00
sam boyer aaf8a8b638 Merge pull request #325 from carolynvs/fix-ensure-unmodified-lock
Write vendor, regardless of lock, if force is true
2017-03-20 12:12:57 -04:00
Carolyn Van Slyck a5ab339ef4 Further simplify ensure payload logic
* If manifest is provided, write it.
* If newLock is provided, write it.
* Explicit vendor behavior: VendorOnChanged, VendorAlways, VendorNever.
* Write vendor/ using newLock.
2017-03-19 11:47:09 -05:00
Carolyn Van Slyck 008ff041cc Include memo in lock diff 2017-03-17 16:52:19 -05:00
Carolyn Van Slyck e565a9f91e Simplify ensure payload logic
* Always write the manifest when provided.
* Write the lock only when modified or when writing vendor/.
* Clarify what should be passed for the two locks args:
  old lock and new lock. Updated `dep init` to match this expectation.
* Add test case for writing a new lock
2017-03-15 11:23:57 -05:00
Carolyn Van Slyck f5fbfe4921 Print new lock file contents during dry-run 2017-03-15 10:06:07 -05:00
sam boyer a6fea7614d Merge pull request #314 from tro3/harness_json_update
Adding -update capability for testcase.json
2017-03-14 21:41:12 -04:00
sam boyer 973f7fe459 Merge pull request #324 from jstemmer/cleanup-writefile
Remove unused function writeFile from init.go
2017-03-14 09:47:51 -04:00
sam boyer 7cfca5bb9c Merge pull request #326 from carolynvs/rename-repo-to-source
Rename the lock field "repo" to "source"
2017-03-14 09:00:58 -04:00
Carolyn Van Slyck 6ae7723bf3 Rename the lock field "repo" to "source" 2017-03-13 10:17:04 -05:00
Carolyn Van Slyck 2287888873 Write vendor, regardless of lock, if force is true
Fix misunderstanding about when lock and newlock should be set in the
SafeWriter tests.
2017-03-13 09:45:23 -05:00
Joël Stemmer 1536b9707a Remove unused function writeFile from init.go
Commit 0acfd38c22 changed how the code was
organized. This function was moved to fs.go, however the unused copy in
init.go seems to have been left behind by accident.
2017-03-13 13:34:41 +00:00
sam boyer 55422bc13b Merge pull request #256 from carolynvs/dry-run
Respect dry run flag during dep ensure
2017-03-11 22:23:47 -05:00
Laurie Clark-Michalek 1f44515bdc Add a note about extended help being available 2017-03-11 11:51:32 -08:00
tro3 8cdbc074c2 Adding testcase.json -update capability 2017-03-10 11:31:26 -08:00
sam boyer 3df877303d Merge pull request #310 from sdboyer/test-harness-tweaks
Rename fields and update test harness docs
2017-03-10 09:35:30 -05:00
sam boyer 10ae941d10 Rename fields and update test harness docs 2017-03-10 09:31:57 -05:00
sam boyer 70f818aa8b Merge pull request #305 from sdboyer/init-bad-paths
Use new gps capabilities during init's dep search
2017-03-09 22:04:53 -05:00
sam boyer 55bb8053ec Add init test for skipping hidden dirs 2017-03-09 21:58:07 -05:00
sam boyer 66d238add8 Use named const param to Flatten() for clarity 2017-03-09 21:15:49 -05:00
Carolyn Van Slyck 7e27e80b7b Display all fields for a removed project in the lock diff 2017-03-09 13:28:47 -06:00
Carolyn Van Slyck b2376322d4 Rename LockedProjectDiff Repository -> Source 2017-03-09 13:28:47 -06:00
Carolyn Van Slyck 02635cc8b0 Display diff of lock file during dry-run 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck d02eb6961e Extract version type matching into a single function 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck 6f72258139 Don't leave open test file handles open 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck 6ac8a778b2 Split out SafeWriter bad input tests into 1 per scenario 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck e43a3b839e Respect dry-run flag during dep ensure 2017-03-09 13:28:42 -06:00
Carolyn Van Slyck 1c50c3ad88 Add TestProjectContext to manage common testing tasks 2017-03-09 13:28:06 -06:00
Carolyn Van Slyck 891494b884 Wrap fs errors to include a better message and callstack 2017-03-09 13:05:30 -06:00
Carolyn Van Slyck 578974f4aa Add test.Helper.GetTestFile
Allows tests to easily read lock/manifest files from any directory,
not just the testdata directory
2017-03-09 13:05:29 -06:00
Carolyn Van Slyck ea0a384660 Wrap errors in the test helper that were missed the first time through 2017-03-09 13:05:29 -06:00
sam boyer 80e4f9d966 Use new gps capabilities during init's dep search
Also refactors a bit and adds some comments for clarity.
2017-03-09 13:00:54 -05:00
sam boyer 5b98ab1371 Merge pull request #287 from tro3/test_harness
Integration test harness
2017-03-09 12:51:05 -05:00
tro3 d3c1115674 More feedback updates 2017-03-08 21:34:32 -08:00
tro3 f2b732f9a9 Review feedback mods 2017-03-08 20:50:23 -08:00
tro3 d03ace9711 Doc typo 2017-03-08 14:46:54 -08:00
tro3 af0e5429d3 Remove miniyaml 2017-03-08 14:37:19 -08:00
tro3 717bef734a Upgrade harness mashalling 2017-03-08 14:33:29 -08:00
tro3 cd1ea8956f Move from miniyaml to json for testcases and other feedback 2017-03-08 06:55:13 -08:00
tro3 b14bf14d9a Adding documentation to cmd/dep/testdata 2017-03-07 14:35:10 -08:00