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

2843 Коммитов

Автор SHA1 Сообщение Дата
sam boyer f2e423e3f2
Merge pull request #1330 from darkowlzz/status-flag-validation
status: add validateFlags()
2017-12-18 13:32:14 -05:00
sam boyer 67c45f4686
Merge pull request #1413 from darkowlzz/concurrent-collectconstraints
status: make collectConstraints() concurrent
2017-12-18 13:29:36 -05:00
sam boyer 132ea90a93
Merge pull request #1461 from sdboyer/toml-array-newlines
Output multi-element TOML arrays on newlines
2017-12-18 11:08:13 -05:00
sam boyer 566dba0b73 Update CHANGELOG 2017-12-18 09:25:48 -05:00
sam boyer d6dde6170b dep: Use new line-per-item behaviors from TOML lib 2017-12-18 09:18:13 -05:00
sam boyer 32dd9fd086 dep: update go-toml to latest master 2017-12-18 09:06:21 -05:00
sam boyer 77447101df
Merge pull request #1453 from darkowlzz/changelog-update
Update changelog
2017-12-14 10:39:03 -05:00
sam boyer c3d278d0b3
Merge pull request #1451 from carolynvs/revert-prune-docs
Revert "Merge pull request #1405 from ibrasho-forks/prune-docs"
2017-12-13 14:16:15 -05:00
Sunny 9c10b3be08
Update changelog 2017-12-14 00:03:20 +05:30
Sunny f31d439b6c
Merge pull request #1421 from otoolec/status-revision-constraint
Fix how dep status print revision constraints
2017-12-13 23:52:56 +05:30
Carolyn Van Slyck 6edfef6a05
Revert "Merge pull request #1405 from ibrasho-forks/prune-docs"
This reverts commit b741887298, reversing
changes made to 8f4a82cb39.
2017-12-13 11:55:32 -06:00
Christopher O'Toole b5e10242b4 Add integration test 2017-12-12 11:37:31 -06:00
Sunny 3a59b68597
Merge pull request #1420 from JamieCrisman/1410-handle-errors
status: handle errors when writing output
2017-12-08 23:30:47 +05:30
sam boyer b7455729f1
Merge pull request #1234 from sudo-suhas/env-dep-cachedir
allow cachedir override using env var
2017-12-08 10:51:43 -05:00
Suhas Karanth e88d062abc skip test for cachedir on Windows 2017-12-08 09:02:19 +05:30
Suhas Karanth 37d6c560cd do not create cachedir recursively
source
- main.go: Try to ensure directory for given `cachedir` path.
- context.go: Create the default cache directory, `$GOPATH/pkg/dep`, if the
  user did not override it.
- source_manager.go: Use `fs.EnsureDir` instead of `os.MkdirAll` for creating
  sources folder in cache directory.
- fs.go:
  - Add func `EnsureDir` to create a directory if it does not exist.
  - Remove func `IsValidPath`.

test
- integration_test.go: Improve tests for invalid cache directory.
- fs_test.go: Add test for `EnsureDir`, remove test for `IsValidPath`.
- manager_test.go: fix TestSourceManagerInit
  - Re-create cache directory before trying to call `NewSourceManager` the 2nd
    time and defer it's removal.
  - If `NewSourceManager` fails the 2nd time, exit the error using `t.Fatal` to
    avoid panic in `sm.Release`

misc
- language - {fallback => default} for cachedir
2017-12-08 09:02:18 +05:30
Suhas Karanth c8f88484f3 validate env var DEPCACHEDIR is a valid path if set
- fs.go - Add method `IsValidPath` to check if given file path string is valid.
  Add tests as well.
- main.go - After loading cachedir from env, if it has been set, check
  validity, exit with status 1 if not. Update integration tests for this
  scenario.
2017-12-08 09:02:18 +05:30
Suhas Karanth 6c1220894d allow cachedir override using env var
source
- main.go: Read and use env var `DEPCACHEDIR` for instantiating dep context.
- context.go:
  - Add field `Cachedir` to struct `Ctx`. This holds the value of env var
    `DEPCACHEDIR`.
  - Use `Ctx.Cachedir` while instantiating `gps.SourceMgr` if present, fallback
    to `$GOPATH/pkg/dep` otherwise.
- source_manager.go: Add a getter func `Cachedir` to facilitate testing in
  `context_test.go`.

test
- context_test.go Add test to check `gps.SourceMgr` is instantiated with
  appropriate `cachedir`.
- integration_test.go: Add test to check environment variable `DEPCACHEDIR` is
  loaded and used if present.

misc
- update changelog
2017-12-08 09:02:18 +05:30
sam boyer c6d1fe0db0
Merge pull request #1440 from sdboyer/simple-cmd-errs
Restore output context to (git) errors
2017-12-07 20:27:35 -05:00
sam boyer e4d57f7eda gps: Return output buffer bytes on error
This is crude, but it will restore output context to various git errors,
which has been crippling. We desperately need to work on formatting
these errors better.
2017-12-07 19:09:14 -05:00
Jamie Crisman fcdb2edaf1 More compact error handling 2017-12-07 11:40:41 -06:00
Jamie Crisman 7ffd97987a Merge branch 'master' of https://github.com/golang/dep into 1410-handle-errors 2017-12-07 11:33:53 -06:00
Sunny 8f6ef146a9
status: remove modified, unused and detailed flags 2017-12-06 22:37:05 +05:30
Sunny 54445a6b58
status: add validateFlags() 2017-12-06 22:36:54 +05:30
Sunny e8a261787f
status: return slice of error from collectConstraints()
Errors from collectConstraints() should not result in failure of status.
These errors are logged to stderr and the error count is added to
`errCount` of `runStatusAll()`. This results in letting the user know
about incomplete status result, keeping the status output clean. Running
status in verbose mode would show all those errors.
2017-12-06 19:32:28 +05:30
Sunny 73ca5d96c8
status: add projectConstraints sorting by Project
Sorting of projectConstraints is required to have a consistent returned
value from collectConstraints().
2017-12-06 19:31:40 +05:30
Sunny 5642a3b7ca
status: make collectConstraints() concurrent 2017-12-06 19:31:28 +05:30
sam boyer ffac8dc47a
Merge pull request #1433 from arbourd/fix-travis-builds
Add Github to known_hosts
2017-12-05 20:21:22 -05:00
Dylan Arbour 828a04535c
Add Github to known_hosts 2017-12-05 15:55:07 -05:00
Jamie Crisman 4938def90b Make error return consistently 2017-12-04 11:30:15 -06:00
Jamie Crisman e8365e76e9 Merge branch 'master' of https://github.com/golang/dep into 1410-handle-errors 2017-12-04 11:28:17 -06:00
Carolyn Van Slyck b741887298
Merge pull request #1405 from ibrasho-forks/prune-docs
Add documentation about prune to Gopkg.toml docs
2017-12-03 16:42:08 -06:00
Carolyn Van Slyck 8f4a82cb39
Merge pull request #1370 from JackyChiu/master
Manifest Version/Source Validation
2017-12-03 16:35:56 -06:00
Carolyn Van Slyck bd15b89031
Merge pull request #1414 from arbourd/omit-empty-constraint
Skip empty constraints
2017-12-03 16:32:31 -06:00
Dylan Arbour ac45fa2f20
Skip empty constraints 2017-12-03 11:11:29 -05:00
sam boyer e69d6e8458 Rearrange codeclimate and go report card badges 2017-12-03 10:02:29 -05:00
sam boyer 49abfec66d
Merge pull request #1427 from dungeonmaster18/go-report-card-badge
Added goreportcard badge to readme file.
2017-12-03 10:00:47 -05:00
sam boyer 90ba43382d
Merge pull request #1424 from arbourd/use-macos-10.11-travis
Use Xcode7.3 Travis image
2017-12-03 09:22:10 -05:00
Umesh Yadav 6a27cfefb8
Added goreportcard badge to readme file. 2017-12-03 19:11:36 +05:30
Dylan Arbour fc74863da2
Use Xcode7.3 Travis image
There are issues running the tests on Xcode8.3 or greater on TravisCI.
2017-12-02 19:56:34 -05:00
Carolyn Van Slyck b005525be3
Merge pull request #1422 from s111/glock-importer
Add importer for github.com/robfig/glock
2017-12-02 10:07:01 -06:00
Sebastian Mæland Pedersen 43b1b5bc7f Add importer for github.com/robfig/glock 2017-12-01 23:57:56 +01:00
Christopher O'Toole 5092d41644 Simplify else / if by using else if 2017-12-01 14:19:34 -06:00
Christopher O'Toole dae0e9d6e9 Fix how dep status print revision constraints
Before this fix revision constraints would be printed as an
Any constraint ("*") instead of as the revision itself.
2017-12-01 13:54:52 -06:00
Jamie Crisman 589f4b59fa Remove unnecessary variables. 2017-11-30 20:50:22 -06:00
Jamie Crisman 01ea97042e Outputter interface methods now return errors. 2017-11-30 18:55:12 -06:00
sam boyer ef6a28f70b
Merge pull request #1411 from sdboyer/status-skip-conversions
dep: Skip tool conversions in dep status
2017-11-28 20:03:41 -05:00
sam boyer dac3110a8a dep: Skip tool conversions in dep status
collectConstraints(), used by `dep status`, was trying to do on-the-fly
conversions of existing tools. That needs to remain disabled until we
also turn it on for `dep init` and `dep ensure`.
2017-11-28 15:30:33 -05:00
sam boyer f2d75a0060
Merge pull request #1408 from somersf/no-fsync
internal/fs: Don't Sync() destination file after copy
2017-11-28 12:36:35 -05:00
Frank Somers ebef7c178a CHANGELOG.md: Add reference to PR 1408
internal/fs: Don't Sync() destination file after copy
https://github.com/golang/dep/pull/1408
2017-11-28 16:36:59 +00:00