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

10 Коммитов

Автор SHA1 Сообщение Дата
David Glasser 681e6f5a3d internal/gps: fix case mismatch error with multiple dependers
Previously, errors like the following could occur:

  v0.4.2: Could not introduce github.com/sirupsen/logrus due to a case-only variation: it depends on "github.com/Sirupsen/logrus", but "github.com/evalphobia/logrus_sentry@v0.4.2" was already established as the case variant for that project root by the following other dependers:
  (root)
  github.com/docker/docker@8510adf8c856d6f0871650216a0e1d7e6ece46ee

This fix matches the correct behavior when there is only one depender earlier in
the function.
2017-10-02 12:29:57 -07:00
sam boyer 5aa4ffe3c2 Merge pull request #1079 from sdboyer/warn-case-mismatch
Add satisfiability check for case variants
2017-09-17 22:27:17 -04:00
Tamir Duberstein d9c8bd6dd1
Add honnef.co/go/tools/cmd/unused
cmd/dep/ensure.go:138:2: field overrides is unused (U1000)
cmd/dep/ensure.go:702:6: type stringSlice is unused (U1000)
internal/gps/bridge.go:60:2: field crp is unused (U1000)
internal/gps/pkgtree/pkgtree_test.go:36:3: field Internal is unused (U1000)
internal/gps/pkgtree/pkgtree_test.go:36:13: field External is unused (U1000)
internal/gps/selection.go:76:21: func (*selection).setDependenciesOn is unused (U1000)
internal/gps/selection.go:99:21: func (*selection).getSelectedPackagesIn is unused (U1000)
internal/gps/solve_basic_test.go:1356:33: func (*depspecSourceManager).ExternalReach is unused (U1000)
internal/gps/solve_basic_test.go:1571:16: func fixLock.SolverVersion is unused (U1000)
internal/gps/solve_basic_test.go:1588:18: func dummyLock.SolverVersion is unused (U1000)
internal/gps/solve_failures.go:20:2: const warning is unused (U1000)
internal/gps/solve_failures.go:21:2: const mustResolve is unused (U1000)
internal/gps/solve_failures.go:22:2: const cannotResolve is unused (U1000)
internal/gps/source_manager.go:217:4: func Temporary is unused (U1000)
internal/gps/source_manager.go:712:2: const ctCheckoutVersion is unused (U1000)
internal/gps/typed_radix.go:34:23: func (*deducerTrie).Delete is unused (U1000)
internal/gps/vcs_repo.go:201:6: type svnRepo is unused (U1000)
internal/gps/vcs_repo_test.go:122:6: func testSvnRepo is unused (U1000)
internal/gps/vcs_source.go:573:6: type repo is unused (U1000)
internal/gps/version_queue_test.go:30:23: func (*fakeBridge).ListVersions is unused (U1000)
internal/gps/version_queue_test.go:45:27: func (*fakeFailBridge).ListVersions is unused (U1000)
internal/test/integration/testproj.go:34:2: field h is unused (U1000)
2017-09-11 19:22:23 -04:00
sam boyer 70d2f5b695 Tests for combined source & case variance 2017-09-10 19:29:25 -04:00
sam boyer 3d369c50a9 Add the wrongCaseFailure, and scads more fixtures 2017-09-10 19:29:25 -04:00
sam boyer 6592101eeb Case insensitivity magic for roots in fixtures
This effectively makes them case-insensitive, case-preserving.
2017-09-10 19:29:25 -04:00
sam boyer 8670e66f5a Add wrongCaseFailure
May or may not end up using this right away, but it'll be in place for
when we have the slightly stronger failure case of a project being
addressed with an incorrect case, as indicated by the project's way
of referencing its own packages.
2017-09-10 19:29:25 -04:00
sam boyer e64c82e377 Add satisfiability check for case variants 2017-09-10 19:29:25 -04:00
Jordan Krage 8969bdf1e1 gps: ProjectIdentifier: drop errString()method in favor of implicit String() calls 2017-08-30 15:03:33 -05:00
Dave Cheney 9ea8489e5e gps: move gps to internal/gps
Fixes #300
Fixes #519
2017-05-10 14:15:27 +10:00