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

53 Коммитов

Автор SHA1 Сообщение Дата
Kashav Madan 2eb24b72e8 Fix formatting of issue references in v0.4.0 notes 2018-01-25 23:43:14 -05:00
sam boyer ad20f9576f dep: Retroactive CHANGELOG update 2018-01-25 09:24:10 -05:00
sam boyer c96dae40e4 dep: Update CHANGELOG for release 2018-01-24 18:15:13 -05:00
sam boyer 8cb413bc0d Update CHANGELOG 2018-01-24 17:57:50 -05:00
Stephan Peijnik beab249867 Fix ignored per-project prune options (#1561)
* Use prune options defined per-project when generating gps.RootPruneOptions
* Add test cases checking if this behavior is correct
2018-01-24 08:14:50 +01:00
sam boyer 7297a48ece dep: Update CHANGELOG for release 2018-01-23 23:24:47 -05:00
sam boyer 689880a0a3 Update CHANGELOG 2018-01-16 01:28:06 -08:00
sam boyer 30ea01581f misc: Clean up CHANGELOG, add TODO from #1509 2018-01-15 21:38:49 -08:00
sam boyer 8239ba1a12
Merge branch 'master' into status-latest-version-type 2018-01-15 21:19:38 -08:00
Sunny 7ed3aa220f
status: LATEST should be of the same type as VERSION
This change modifies the LATEST field in status from always being a
revision to the same type as of the VERSION field.

If VERSION is a semver version, the LATEST would have the latest semver
version of the project constrained by the effective constraint.
If VERSION is a branch version, the LATEST would have the latest
revision of that branch.
2018-01-11 23:38:15 +05:30
Suhas Karanth 7bf46112fa make importers error tolerant (#1474)
* make importers error tolerant

- root_analyzer.go: Log a warning on encountering an unrecoverable error during
  import of external config and proceed with the import for other packages.
  Do not return error from private func `importManifestAndLock`.

internal/importers:
- base/importer.go:
  - `loadPackages`: Do not return error. If `SourceManager.DeduceProjectRoot`
    fails to determine the project root, log a warning and continue with the
    rest of the imported packages.
  - `ImportPackages`: Do not return error. When constraint resolution from the
    lock hint fails, only log a warning.
- Importer implementations:
  - Return an error from `Import` only for catastrophic failures(ex: yaml
    parsing failed).
  - `load`: Make it more error tolerant. Log warnings only for any of the
    following scenarios:
    - When and if a lock file, separate from the dependency file is present,
      like, in the case of glide, and parsing fails. Continue with the import
      as if the lock file was not present.
    - If import packages are parsed line by line like in the case of glock,
      and one of the line could not be parsed.
  - `convert`: Do not return an error. Log warnings only for any of the
    following scenarios:
    - Expected field, such as `package` for an entry in `glide.yaml>imports`
      is not present.
    - Package was specified but the contraint could not be found.

* update importer tests

* improve importer warning msgs

Address feedback from @carolynvs

* add tests for importer failure scenarios

- internal/importers/base/importer_test.go:
  - Check for warning when an invalid project is present whose project root
    cannot be parsed.
  - Check for warning when lock hint cannot be resolved correctly and the
    constraint cannot be applied.
- Integration test for malformed external config(glide.yaml)

* tweak importer warnings

- {package => project}
- Improve warning message when no constraint is found for the package being
  imported.

* update changelog
2018-01-11 12:02:00 -06:00
Adam Woodbeck 211dbce2ea
Improve change log description of fix 2017-12-27 08:30:54 -05:00
Adam Woodbeck 841ac94668 Add optional '-v' flag to ensure args help text 2017-12-26 20:32:33 -05:00
sam boyer 566dba0b73 Update CHANGELOG 2017-12-18 09:25:48 -05:00
Sunny 9c10b3be08
Update changelog 2017-12-14 00:03:20 +05:30
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
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
Jamie Crisman fcdb2edaf1 More compact error handling 2017-12-07 11:40:41 -06:00
Jamie Crisman 4938def90b Make error return consistently 2017-12-04 11:30:15 -06:00
Dylan Arbour ac45fa2f20
Skip empty constraints 2017-12-03 11:11:29 -05:00
Sebastian Mæland Pedersen 43b1b5bc7f Add importer for github.com/robfig/glock 2017-12-01 23:57:56 +01: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
sam boyer 7ccbfed886
Merge pull request #815 from kyleconroy/govendor-importer
Add importer for govendor
2017-11-26 15:37:53 -05:00
Carolyn Van Slyck 56cefc4d23
internal/importers: add govendor importer
Move govendor files into importers pkg

Expose the base importer's source manager
It is used by the govendor importer to detect ignored packaegs

Update govendor importer to use base importer

Document exported members

Remove unused testdata

Import ignores with wildcards

Add govendor support to changelog

Do not import vendored sources

Don't require a revision to import govendor config
There are valid govendor configs in the wild that do not have a revision
set, essentially requiring the package but not locking to a revision. We
should allow that and not stop the import.
2017-11-26 11:59:21 -06:00
sam boyer 13df556177
Merge pull request #1243 from carolynvs/gopkgin-v0-panic
gps: fix panic for gopkgin's implicit v0
2017-11-20 13:28:18 -05:00
Quentin Renard a00456599a Added flag dependent vendor behavior for ensure update as well 2017-11-17 08:31:31 +01:00
sam boyer d0d6602eb1
Merge branch 'master' into gopkgin-v0-panic 2017-11-16 21:59:28 -05:00
Vladimir Smirnov b7882f0b43 Add a sanity check for git ls-remote output
This should fix panics for cases where `git ls-remote` contains
unepxected lines (e.x. some extra warnings from ssh)

Related to #1379
2017-11-16 16:52:52 +01:00
Carolyn Van Slyck e845081f67
List gopkg.in v0 support in changelog 2017-11-14 20:16:48 -08:00
Jordan Krage 8065bb2db9 gps: vcs: suppress git password prompts 2017-11-14 10:31:49 -06:00
tamal e9669650a1 Move gps package out of internal
`gomvpkg -from github.com/golang/dep/internal/gps -to github.com/golang/dep/gps`
2017-11-10 17:02:30 -08:00
sam boyer ea9a941c0f Update CHANGELOG 2017-10-29 00:44:23 -04:00
Carolyn Van Slyck e9c9a0d23e
Include #1176 in the changelog 2017-10-25 20:13:05 -05:00
Denis Brodbeck c72ba3ab43 Update changelog. 2017-10-20 22:49:05 +02:00
Sunny 11b1265382 Add v0.3.3 in changelog 2017-10-20 17:30:59 +05:30
Alexey Palazhchenko 761b16eb6b Update CHANGELOG.md 2017-10-20 10:19:19 +03:00
Carolyn Van Slyck 14f7943b80
List import support for gb/gvt in the changelog 2017-10-17 16:28:15 -05:00
Jelte Fennema 9db18d89a8 Changelog: Move -no-vendor -dry-run behaviour to NEW FEATURES section 2017-10-12 19:50:53 -06:00
Jelte Fennema 5395da0a83 Merge remote-tracking branch 'origin' into no-vendor-dry-run 2017-10-12 19:36:20 -06:00
sam boyer 276ead9b8d Merge branch 'master' into recursive-ignore 2017-10-12 13:21:19 -04:00
Jelte Fennema 8a9df9b4f5 Merge branch 'master' into no-vendor-dry-run 2017-10-11 19:24:48 -06:00
Jelte Fennema 544c6007f3 Update changelog for #1256 2017-10-10 11:12:24 -06:00
Sunny d5e5185e8d Update CHANGELOG 2017-10-08 02:07:43 +05:30
Sunny 4376248c2f Update CHANGELOG. 2017-10-07 19:52:23 +05:30
sam boyer 2151e429c1 Update CHANGELOG.md with #1191 2017-10-06 00:33:35 -04:00
sam boyer 0edac3f3d3 Merge pull request #1216 from darkowlzz/status-mismatch-ignore
fix(status): skip ignored pkgs in missing pkgs chk
2017-10-04 07:41:44 -04:00
sam boyer 67e867833a Merge pull request #1205 from darkowlzz/pr-template-changelog
pr-template: instruction about updating changelog
2017-10-04 07:40:31 -04:00
Sunny 9547a152db fix(status): skip ignored pkgs in missing pkgs chk
This change skips the root packages from missing package check if
there's a path to the corresponding package in manifest's ignored list.

`digestMismatch` is removed from `runStatusAll()`. When there's
a digest mismatch, it's an error. And we already log to stderr but never
returned an actual error. `errInputDigestMismatch` is now returned as error
when there's a digest mismatch.

Some refactoring in how we handle the returned info from `runStatusAll()`
and show the errors and their solutions.
2017-09-28 17:54:37 +05:30
Sunny 2e51ae2838 changelog: correct changelog about ensure 2017-09-27 01:25:51 +05:30
Sunny bc88218d82 ref(ensure): make ensure -add concurrent
This change makes `ensure -add` concurrently add the dependencies and
uses golang.org/x/sync/syncmap for a concurrent map to replace
addInstructions map.

Also, logs a message when the sources are being fetched.
2017-09-24 19:48:48 +05:30