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

2041 Коммитов

Автор SHA1 Сообщение Дата
sam boyer 1f26a1c477 Revert "Merge pull request #825 from grepory/dep-ensure-errors"
This reverts commit 6343e90dfd, reversing
changes made to bea8fe3176.
2017-07-17 12:30:04 -04:00
Sunny 6343e90dfd Merge pull request #825 from grepory/dep-ensure-errors
Better error reporting from dep ensure when packages have errors
2017-07-17 21:28:16 +05:30
Sunny bea8fe3176 Merge pull request #828 from jgeiger/patch-1
Fix typo in ISSUE_TEMPLATE.md
2017-07-17 20:15:39 +05:30
Greg Poirier 1013930533
Add simple test cases for checkErrors in ensure 2017-07-16 15:32:03 -07:00
Greg Poirier 357bd3e0cc
Avoid unnecessary allocations in checkErrors 2017-07-16 06:44:36 -07:00
Greg Poirier 601eecf1c1
Improve UX for dep ensure build errors
This adds a header with the number of errors found and sorts the errors
preferring build errors first.
2017-07-15 15:30:55 -06:00
Joey Geiger 50a4ca3453 Fix typo in ISSUE_TEMPLATE.md 2017-07-15 14:00:48 -06:00
Greg Poirier aed242cd48
Better error reporting from dep ensure when packages have errors
Running dep ensure would generate unhelpful output when directories had
code with errors or no go code. This prints the import path of the
package with either "no go code" or the build error message.
2017-07-15 13:26:44 -06:00
Sunny 911cd22a47 Merge pull request #809 from darkowlzz/version-doc
docs: Gopkg.toml.md version
2017-07-14 21:21:21 +05:30
Sunny e212ae69db Move version examples to Gopkg.toml doc 2017-07-14 17:36:41 +05:30
Sunny a1db233415 Merge pull request #810 from golang/darkowlzz-pr-template-comment-tag
PR-template: fix comments tag
2017-07-14 00:04:17 +05:30
Sunny d7149abe21 PR-template: fix comments tag 2017-07-13 22:52:56 +05:30
Sunny ab65bec6d7 docs: Gopkg.toml.md version 2017-07-13 22:40:54 +05:30
Sunny fc0070765c Merge pull request #716 from jmank88/unexport_prune_project
unexport and re-locate PruneProject and helpers
2017-07-13 22:02:07 +05:30
Jordan Krage 1477ab92c8 unexport and re-locate PruneProject and helpers 2017-07-13 07:50:29 -05:00
Sunny 7b002aeeb3 Merge pull request #807 from golang/darkowlzz-faq-correct-semver-range
FAQ: Correct semver range example
2017-07-12 15:48:45 +05:30
Sunny 130a2b9936 FAQ: Correct semver range example
Refer: https://github.com/golang/dep/pull/736#discussion_r121441871
2017-07-12 14:47:09 +05:30
Sunny e99676b8a0 Merge pull request #764 from xmattstrongx/isDir_error_handling
fs.isDir return error when directory is not found
2017-07-10 21:19:05 +05:30
Carolyn Van Slyck 3d72d19a47 Merge pull request #803 from carolynvs/codeowners
Add CODEOWNERS
2017-07-10 09:29:51 -05:00
mstrong 7870384875
updated fs.isDir to always return an error even if the directory is not found 2017-07-10 10:05:03 -04:00
Carolyn Van Slyck 60db8c4601
Add CODEOWNERS
Flag well-known components with their assigned maintainer.
2017-07-10 08:48:24 -05:00
Sunny ddf56800c7 Merge pull request #715 from carolynvs/detect-branch-vs-tag
Interpret strings as branches > semver constraints
2017-07-07 15:57:00 +05:30
Carolyn Van Slyck db62987cec
Select locked version compatible with the constraint
When selecting a preferred version for a lock (before solve)
if the constraint is a semver range, ensure the version
selected is compatible.
2017-07-06 18:29:03 -05:00
Carolyn Van Slyck c300e1cdb5
Interpret strings as branches > semver constraints
When a user supplied string in an imported config file, or specified to
dep ensure, can be interpreted multiple ways, prefer the branch over a
semver constraint.

In #710, glide.yaml specified v2 for https://github.com/go-mgo/mgo.
When we assume that is a semver constraint, solve fails because the
hinted revision in the lock (a commit on the v2 branch) doesn't satisfy
the assumed constraint of ^2.0.0.

The new preferred match order for the user string is:

* revision
* branch
* semver constraint
* tag

I am giving preference of a semver constraint over a tag so that a bare
version, 1.0.0, is interpreted more loosely with an implied caret,
^1.0.0, instead of the stricter exact match.
2017-07-06 18:29:03 -05:00
Carolyn Van Slyck 0822bae41c Merge pull request #761 from marwan-at-work/move-deduce-constraint
move deduceConstraint to SourceManager
2017-07-06 18:10:07 -05:00
marwan-at-work 6f32508ff2 pr fixes 2017-07-06 11:49:11 -04:00
marwan-at-work 5bfa12ee00 move deduceConstraint to SourceManager 2017-07-06 11:28:04 -04:00
Carolyn Van Slyck 5c02575dc5 Merge pull request #770 from carolynvs/import-doc
Add godep to list of supported external tools
2017-07-03 13:33:38 -05:00
Carolyn Van Slyck 92f122cfe4 List supported tools in the FAQ 2017-07-03 13:08:34 -05:00
Carolyn Van Slyck 072718b12f Add godep to list of supported external tools 2017-07-03 09:08:06 -05:00
Carolyn Van Slyck 547afa64c4 Merge pull request #787 from carolynvs/group-faq
Group FAQ by topic
2017-07-03 08:53:13 -05:00
sam boyer 4bfa359b53 Merge pull request #682 from jmank88/split_absolute_project_root
SplitAbsoluteProjectRoot re-name/doc
2017-06-27 00:58:48 -04:00
sam boyer 5b45e0a379 Merge pull request #791 from mikijov/dead-code-1
Removed unused ProjectConstraints.merge()
2017-06-27 00:02:33 -04:00
sam boyer a504566277 Only test against Go 1.8 on Windows
Appveyor tests take longer to run, and do so in serial. It's not worth
testing against the additional Go version when we're already capturing
that difference in Travis.
2017-06-26 23:59:16 -04:00
Milutin Jovanović f8d56fafd5 Removed unused ProjectConstraints.merge() 2017-06-26 20:21:22 -04:00
Sunny 77df563b6a Merge pull request #780 from ibrasho-forks/fix-prune-bug-on-windows
dep: update calculatePrune to not assume "/" as file separator
2017-06-25 23:25:54 +05:30
Sunny f16f7a875b Merge pull request #785 from jmank88/getGOPATHs
remove getGOPATHS; cleanup
2017-06-25 23:14:28 +05:30
Jordan Krage ac8ec854a9 update SetPaths doc 2017-06-25 12:21:35 -05:00
Carolyn Van Slyck 86988af02f Group FAQ by topic 2017-06-23 15:34:19 -05:00
Ibrahim AshShohail 30ba901b2c
dep: update calculatePrune to not assume "/" as separtor
dep.calculatePrune assumes "/" is the file separtor. This change fixes
an issue caused by that on Windows.

Fixes #775

Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-06-23 16:57:48 +03:00
Sunny 9f3d2ec971 Merge pull request #768 from mikijov/429-remove-manifest-testdependencies
Fixes #429. Removed Manifest.TestDependencyConstraints() and all usage.
2017-06-23 18:23:56 +05:30
Milutin Jovanović 64c6cbcf3a Removed stale comments. 2017-06-23 07:07:17 -04:00
Ibrahim AshShohail ec50ada83b Merge pull request #778 from ibrasho-forks/remove-slashing-in-SetPaths-DetectProjectGOPATH
dep: remove usage of filepath.FromSlash & filepath.ToSlash in context.go
2017-06-22 07:00:50 -08:00
Jordan Krage 3fe03979a2 remove getGOPATHS; cleanup 2017-06-22 08:00:37 -05:00
Jordan Krage eb972b2438 SplitAbsoluteProjectRoot refactor 2017-06-22 07:21:19 -05:00
Ibrahim AshShohail 6e2930fc66
dep: remove usage of filepath.FromSlash & filepath.ToSlash
Remove the usage of filepath.FromSlash and filepath.ToSlash in GOPATH
detection functions *Ctx.SetPaths and *Ctx.detectGOPATH.

This should ensure the GOPATH returned from *Ctx.DetectProjectGOPATH
uses the filesystem separator instead of slashes.

Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-06-21 03:34:45 +03:00
Ibrahim AshShohail 0584d8c505
dep: add TestCalculatePrune
Add a test for dep.calculatePrune

Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-06-21 03:06:13 +03:00
Milutin Jovanović 1ce62ca834 Fixes #429. Removed Manifest.TestDependencyConstraints() and all usage.
As per the issue description, speficying dependency now does not imply
requirement. Therefore, there is no point in differentiating normal
and test dependencies.
2017-06-19 07:02:41 -04:00
Sunny c79b048e07 Merge pull request #766 from dtan4/gopkg-toml-trailing-spaces
Remove trailing spaces from generated Gopkg.toml
2017-06-19 16:28:58 +05:30
Daisuke Fujita 672b66b6b0 Remove trailing spaces from Gopkg.toml testdata 2017-06-19 12:15:34 +09:00