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

2943 Коммитов

Автор SHA1 Сообщение Дата
sam boyer e96a004730
Merge pull request #1562 from speijnik/per-project-prune-fixes
Fix ignored per-project prune options (#1561)
2018-01-24 08:44:41 -05:00
sam boyer 10d3175c05 announce: Update announcement with v0.4.1 ref 2018-01-24 08:23:56 -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 6d95d0d6ac
Merge pull request #1559 from sdboyer/v040-release-prep
v0.4.0 release prep
2018-01-23 23:59:21 -05:00
sam boyer 916906bed1 dep: Prune vendor using new pruning powers
Also remove the now-superfluous `dep prune` call from vendor validation
checks.
2018-01-23 23:46:57 -05:00
sam boyer 7297a48ece dep: Update CHANGELOG for release 2018-01-23 23:24:47 -05:00
sam boyer bd4a7ec7c5 docs: Fix links in announce blog && intro 2018-01-23 23:22:53 -05:00
sam boyer 0aee10e7d4 dep: Fix broken test from prune init 2018-01-23 23:22:34 -05:00
sam boyer 4a3baf8b68 docs: Incorporate massive docs update w/new site
Closes #1499.
2018-01-23 23:03:09 -05:00
sam boyer 879f6ca58a docs: Rework Gopkg.toml docs significantly
This was nominally to incorporate prune docs, but it became a broader
rewrite that was really needed, anyway.
2018-01-23 22:59:22 -05:00
sam boyer 0368da431f ensure: Absorb dep prune into dep ensure
This merge incorporates the long-running branch that consolidated all
the work related to absorbing dep prune into dep ensure. As of this
commit, dep prune is now a hidden dummy command, and dep ensure does all
the heavy lifting automatically.
2018-01-23 20:05:25 -05:00
sam boyer 64d7f61a83 docs: new release announcement, CSS fixes 2018-01-23 16:37:25 -05:00
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
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
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
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