This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
v0.4.0
v0.4.0 is a significant milestone for dep. It removes the dep prune
command, absorbing its behavior entirely into dep ensure
, with additional granular controls. This is an immediate boon for users' workflows, but it also unblocks the path to finishing essential parts of dep's design.
It is strongly recommended that you update your Gopkg.toml
to include the new pruning directives as soon as you update to this new version of dep. For most projects, adding this to Gopkg.toml
will be fine:
[prune]
unused-packages = true
go-tests = true
This will do everything dep prune
used to, and more, with fewer bugs.
Less verbose, but equally exciting news: dep init
now supports automated conversions from govendor
and glock
!
Finally, this release includes a new, detailed documentation site!
NEW FEATURES:
- Absorb
dep prune
intodep ensure
. (#944) - Add support for importing from glock based projects. (#1422)
- Add support for importing from govendor based projects. (#815)
- Allow override of cache directory location using environment variable
DEPCACHEDIR
. (#1234) - Add support for template output in
dep status
. (#1389 - Each element in a multi-item TOML array is output on its own line. (#1461)
BUG FIXES:
- Releases targeting Windows now have a
.exe
suffix. (#1291) - Adaptively recover from dirty and corrupted git repositories in cache. (#1279)
- Suppress git password prompts in more places. (#1357)
- Fix
-no-vendor
flag forensure -update
. (#1361) - Validate
git ls-remote
output and ignore all malformed lines. (#1379) - Support gopkg.in version zero. (#1243)
- Fix how dep status print revision constraints. (#1421)
- Add optional
-v
flag to ensure sub command's syntax. (#1458) - Allow URLs containing ports in
Gopkg.toml
source
fields. (#1509)
IMPROVEMENTS:
- Log as dependencies are pre-fetched during dep init. (#1176)
- Make the gps package importable. (#1349)
- Improve file copy performance by not forcing a file sync. (#1408)
- Skip empty constraints during import. (#1414)
- Handle errors when writing status output. (#1420)
- Add constraint for locked projects in
dep status
. (#962) - Make external config importers error tolerant. (#1315)
- Show LATEST and VERSION as the same type in status. (#1515)
- Warn when [[constraint]] rules that will have no effect. (#1534)