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

2955 Коммитов

Автор SHA1 Сообщение Дата
sam boyer 1f865aa6ac blog: Rename announce blog post
Taking v0.4.0 out of the actual blog post title makes it a little less
confusing.
2018-01-24 19:32:17 -05:00
sam boyer 37d9ea0ac1 dep: Sharpen `dep prune` warning message 2018-01-24 19:15:54 -05:00
sam boyer c96dae40e4 dep: Update CHANGELOG for release 2018-01-24 18:15:13 -05:00
sam boyer de0548c3b3
Merge pull request #1570 from sdboyer/fix-prune-opts
Honor per-project prune options correctly
2018-01-24 18:13:20 -05:00
sam boyer 149b895453 prune: Restore old prune logic, with warnings
This will make the transition easier for people with automation already
built around the old dep prune. We'll remove the logic again for the
next release.
2018-01-24 18:11:49 -05:00
sam boyer 1227bd237d prune: fix docs copypasta: s/true/false/ 2018-01-24 18:02:11 -05:00
sam boyer 8cb413bc0d Update CHANGELOG 2018-01-24 17:57:50 -05:00
sam boyer 22093fbd8a docs: Update announcement blog post 2018-01-24 17:56:37 -05:00
sam boyer ece33427a0 prune: Decode directly from TOML types
Our TOML lib doesn't support decoding directly into interface{} types,
so our only short-term choice is to decode...for a third time, and
operate directly on that.
2018-01-24 17:54:19 -05:00
sam boyer 877b79325c prune: Remove spurious types, fix tests
All old types are now gone, tests are fixed, and test coverage should be
adequate for emergency purposes.
2018-01-24 16:04:02 -05:00
sam boyer 42ebf4a3d8 prune: Introduce CascadingPruneOptions
This new type defers computation of the actual prune value for a given
project until the method is called, rather than trying to precompute it.
By deferring computation, we retain full fidelity on the original
cascading inputs.

Still a WIP hack - need to clean up, and make everything actually use this.
2018-01-24 14:34:29 -05:00
sam boyer 69763c4289 dep: Fix erroneous test use of non-project root 2018-01-24 08:51:16 -05:00
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