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

3093 Коммитов

Автор SHA1 Сообщение Дата
sam boyer f10e951c7c docs: Templates and CSS tweaks to docusaurus 2018-01-23 12:57:42 -05:00
sam boyer 430c48a3db docs: First pass on docusaurus 2018-01-23 11:06:17 -05:00
sam boyer 5e064a583f docs: Add installation.md, lots of tweaks
Assorted edits and wording tweaks, as well as including bash as type on
most of the fenced code blocks. Also relocated assets into docs/assets
from docs/img in order to accommodate docusaurus' expected layout.
2018-01-23 09:54:52 -05:00
Sunny 52307d468b
Merge pull request #1544 from carolynvs/fix-update-all-golden-files
Make it easier to update all golden files at once
2018-01-22 22:03:37 +05:30
Sunny 015a757078
Merge pull request #1538 from mattayes/1528-faq-fix
Fix dependency upgrade example in FAQ.md
2018-01-21 19:13:20 +05:30
Sunny 57f0a59dc4
status: remove -detailed flag from help
We no longer have -detailed flag. Remove it from status help.
2018-01-21 17:46:55 +05:30
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