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

3187 Коммитов

Автор SHA1 Сообщение Дата
Zander Mackie e91002643e BrokenImportFeedback docs complete sentences 2018-01-20 16:42:46 -05:00
Zander Mackie 9075212558 Sprintf variables on same line 2018-01-20 16:42:02 -05:00
Carolyn Van Slyck 46080f4c84
Tweak import warnings to prevent confusion (#1543)
* Removing warning when the constraint hint is empty. It's a common case
and the lock may still be imported.
* Fix warning to say lock instead of constraint when the lock hint
cannot be resolved.
2018-01-18 15:28:34 -06:00
Carolyn Van Slyck c755628cf8
Update expected output to accommodate trailing spaces
The tests don't fail because it's a trailing whitespace difference
but I'm fixing so that it doesn't show up as modified for the next
person to update all the golden files
2018-01-18 15:15:38 -06:00
Carolyn Van Slyck 7cb0a0cfc2
Import internal/test in all packages with tests
This allows people to run go test ./... -update, without this
in order to do a mass update of golden files you need to run the
update against individual packages which is a huge pain.
2018-01-18 15:14:51 -06:00
Carolyn Van Slyck 16c38f4f31
Don't warn about import diffs when it's only packages 2018-01-17 10:14:06 -06:00
sam boyer 7ae1fda48d docs: Fix up README, polish deduction and intro 2018-01-17 00:33:27 -08:00
sam boyer afb1cd6650 docs: Penultimate docs changeset
Just tidying and deduction left now before the first mountain of docs
can be called complete.
2018-01-17 00:33:27 -08:00
sam boyer adb9a566d9 docs: Add Gopkg.lock.md 2018-01-17 00:33:27 -08:00
sam boyer 7f60cb3aee docs: Failure modes doc nearly done.
Now only basic explanations of solving failures are missing. Also
includes relevant glossary updates.
2018-01-17 00:33:27 -08:00
sam boyer b2c090f40a docs: Add solver and failures doc; misc others 2018-01-17 00:33:27 -08:00
sam boyer bb08cee627 docs: Done with next stage of ensure docs 2018-01-17 00:33:27 -08:00
sam boyer d047b5801b docs: Incremental checkin, mostly ensure mechanics 2018-01-17 00:33:27 -08:00
sam boyer af7528018a docs: incremental checkin of numerous new docs 2018-01-17 00:33:27 -08:00
sam boyer 3b8fbe4835
Merge pull request #1534 from sdboyer/ineffectuals
Warn on ineffectual constraints
2018-01-16 22:26:04 -08:00
sam boyer b89aa7e976 dep: Wording tweaks on ineffectuals error message 2018-01-16 20:19:28 -08:00
Matt Braymer-Hayes 1665d9b417
Fix dependency upgrade example in FAQ.md 2018-01-16 09:33:01 -08:00
sam boyer 2eeefbd1d7 dep: Emit ptree from GetDirectDependencyNames()
A convenience, as callers often need both the RootPackageTree and the
direct dependencies map. Though this does further suggest that we ought
to be able to stitch this up neatly in gps, at some point.

Also, handle an error that was previously dropped.
2018-01-16 08:40:09 -08:00
sam boyer 689880a0a3 Update CHANGELOG 2018-01-16 01:28:06 -08:00
sam boyer 6a5fcbd8e8 dep: Add ineffectual constraints finder and warn
Finally fixes #302.
2018-01-16 01:20:48 -08:00
sam boyer 6fc8e052d2 dep: Convert to using GetDirectDependencyNames()
Specifically, we need to switch map[string]bool for
map[gps.ProjectRoot]bool. Trivial refactor, but it's preferable to do
this anyway as this is a situation where gps.ProjectRoot should be used
to denote that strings in this map are assumed to be project roots. Case
in point, one of the importers was making the assumption that it had
packages, not root paths, but it wasn't obvious without the type
hinting.
2018-01-16 01:18:05 -08:00
sam boyer 97b8be8a1b dep: Add Project.GetDirectDependencyNames()
This method is a a complete and correct implementation for retrieving
the list of direct dependency names. It should be able to be used by all
dep commands, if needed.
2018-01-15 23:46:25 -08:00
sam boyer 5583b686ff init: Break out huge Run func into methods a bit 2018-01-15 23:41:36 -08:00
sam boyer 30ea01581f misc: Clean up CHANGELOG, add TODO from #1509 2018-01-15 21:38:49 -08:00
sam boyer 4437e02946
Merge pull request #1509 from sttts/sttts-source-urls
Rearrange path validation to allow ports
2018-01-15 21:27:16 -08:00
sam boyer 42d339840d
Merge pull request #1515 from darkowlzz/status-latest-version-type
status: LATEST should be of the same type as VERSION
2018-01-15 21:22:33 -08:00
sam boyer 8239ba1a12
Merge branch 'master' into status-latest-version-type 2018-01-15 21:19:38 -08:00
sam boyer d257a633e5
Merge pull request #1532 from sdboyer/bzr-win
gps: Disable certain bzr tests on Windows
2018-01-15 09:50:31 -08:00
sam boyer db545146b1 gps: Disable certain bzr tests on Windows
The precise underlying causes of the problem with bzr on Windows is
unclear - it could be just about bzr with Windows, or the version of
bzr, or some underlying system interaction. But it's causing appveyor
tests to erroneously fail, and bzr is so little-used that it's
acceptable to just skip the tests, for now.
2018-01-15 08:01:41 -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
Carolyn Van Slyck 502b4a34cf
Make lint happy 2018-01-11 10:15:29 -06:00
sam boyer 142735b594 prune: Tweak help and output wording a bit 2018-01-10 16:16:00 -08:00
sam boyer 7c4a5d602b
Merge pull request #1506 from ibrasho-forks/add-no-op-prune
Add no-op prune command
2018-01-10 16:10:29 -08:00
sam boyer 73e9c7562b
Merge pull request #1514 from darkowlzz/docs-metadata-typo
docs: correct the metadata example in Gopkg.toml.md
2018-01-09 17:58:48 -08:00
Sunny 9f7fe411de
docs: correct the metadata example in Gopkg.toml.md 2018-01-09 20:41:29 +05:30
sam boyer 137e77de59
Merge pull request #1512 from jmank88/nuts
upgrade github.com/jmank88/nuts to 0.3.0
2018-01-09 07:07:42 -08:00
Jordan Krage 573b44d20b upgrade github.com/jmank88/nuts to 0.3.0 2018-01-08 20:31:52 -06:00
Ibrahim AshShohail d2e36ef0f6
cmd/dep: add a no-op prune to preserve backward-compatibility
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2018-01-05 19:10:42 +03:00
sam boyer 249a930709 Rearrange path validation to allow ports 2018-01-04 13:05:50 +01:00
sam boyer 5e8ecaa95f CI: trying to disable bad codeclimate checks 2018-01-03 09:56:08 -05:00
Sunny 7636d76b57
Merge pull request #1503 from duckbrain/patch-1
FAQ: Correct `.username` to `.example`
2018-01-03 19:05:06 +05:30
sam boyer a7be96f1a0
docs: Remove codeclimate badge from README 2018-01-03 02:25:48 -05:00
Jonathan Duck 7e88569d00
Correct `.username` to `.example` 2018-01-02 13:47:43 -08:00
Zander Mackie ce07d2ee49 Add test cases for BrokenImportFeedback
- Cover:
  - Removed project
  - Changed source
  - Changed Branch
2018-01-02 12:28:28 -05:00
Zander Mackie c2c59f1963 Update BrokenImportFeedback tests for easier parameterizing 2018-01-02 11:53:02 -05:00
Zander Mackie fd6ef501c7 BrokenImportFeedback track modifications to locks and branches and source for projects 2018-01-02 11:18:36 -05:00
Zachary Romero f3e15932d3 Improve error message when gopath dependency exists but lacks VCS (#1479) 2018-01-01 10:19:28 -06:00
sam boyer 133de3eda3
Fix newcomer label links 2018-01-01 00:47:21 -05:00
Sunny b19e8d46ec
Merge pull request #1493 from JackyChiu/applicable_constraints
status: Collect Applicable Constraints - Test Cleanup
2017-12-30 00:35:39 +05:30