golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.86k stars 1.05k forks source link

Dep Ensure is not importing gopkg.in/DataDog/dd-trace-go.v1 #2158

Closed chrisyee1 closed 3 years ago

chrisyee1 commented 5 years ago

Trying to import the DataDog package located here: gopkg.in/DataDog/dd-trace-go.v1

gopkg.toml is as follows:

[prune]
  go-tests = true
  unused-packages = true

[[constraint]]
  name = "github.com/caarlos0/env"
  version = "3.5.0"

[[constraint]]
  name = "github.com/patrickmn/go-cache"
  version = "2.1.0"

[[constraint]]
  name = "go.mongodb.org/mongo-driver"
  version = "^1.0.0"

[[constraint]]
  name = "gopkg.in/DataDog/dd-trace-go.v1"
  version = "1.13.0"

If I remove the DataDog references from my code and from the gopkg.toml, dep ensure is successful.

What version of dep are you using (dep version)?

0.5.2

What dep command did you run?

dep ensure -v

What did you expect to see?

Datadog dependencies installed successfully.

What did you see instead?

# Gopkg.lock is out of sync with Gopkg.toml and project imports:
gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer: in Gopkg.lock's input-imports, but neither imported nor required

Root project is "core-mongo-data-service"
 7 transitively valid internal packages
 12 external packages imported from 6 projects
(0)   ✓ select (root)
(1)     ? attempt github.com/caarlos0/env with 1 pkgs; at least 1 versions to try
(1)         try github.com/caarlos0/env@v3.5.0
(1)     ✓ select github.com/caarlos0/env@v3.5.0 w/1 pkgs
(2)     ? attempt github.com/chrisyee1/mgo with 1 pkgs; at least 1 versions to try
(2)         try github.com/chrisyee1/mgo@master
(2)     ✓ select github.com/chrisyee1/mgo@master w/2 pkgs
(3)     ? attempt github.com/go-redis/redis with 1 pkgs; at least 1 versions to try
(3)         try github.com/go-redis/redis@v6.15.2
(3)     ✓ select github.com/go-redis/redis@v6.15.2 w/7 pkgs
(4)     ? attempt github.com/patrickmn/go-cache with 1 pkgs; at least 1 versions to try
(4)         try github.com/patrickmn/go-cache@v2.1.0
(4)     ✓ select github.com/patrickmn/go-cache@v2.1.0 w/1 pkgs
(5)     ? attempt go.mongodb.org/mongo-driver with 6 pkgs; at least 1 versions to try
(5)         try go.mongodb.org/mongo-driver@v1.0.1
(5)     ✓ select go.mongodb.org/mongo-driver@v1.0.1 w/30 pkgs
(6)     ? attempt github.com/go-stack/stack with 1 pkgs; at least 1 versions to try
(6)         try github.com/go-stack/stack@v1.8.0
(6)     ✓ select github.com/go-stack/stack@v1.8.0 w/1 pkgs
(7)     ? attempt github.com/xdg/stringprep with 1 pkgs; at least 1 versions to try
(7)         try github.com/xdg/stringprep@master
(7)     ✓ select github.com/xdg/stringprep@master w/1 pkgs
(8)     ? attempt github.com/golang/snappy with 1 pkgs; at least 1 versions to try
(8)         try github.com/golang/snappy@master
(8)     ✓ select github.com/golang/snappy@master w/1 pkgs
(9)     ? attempt golang.org/x/text with 1 pkgs; at least 1 versions to try
(9)         try golang.org/x/text@v0.3.2
(9)     ✓ select golang.org/x/text@v0.3.2 w/6 pkgs
(10)  ? attempt golang.org/x/sync with 1 pkgs; at least 1 versions to try
(10)      try golang.org/x/sync@master
(10)  ✓ select golang.org/x/sync@master w/1 pkgs
(11)  ? attempt github.com/xdg/scram with 1 pkgs; at least 1 versions to try
(11)      try github.com/xdg/scram@master
(11)  ✓ select github.com/xdg/scram@master w/1 pkgs
(12)  ? attempt golang.org/x/crypto with 1 pkgs; at least 1 versions to try
(12)      try golang.org/x/crypto@master
(12)  ✓ select golang.org/x/crypto@master w/1 pkgs
(13)    ← no more versions of gopkg.in/DataDog/dd-trace-go.v1 to try; begin backtrack
(12)  ← backtrack: no more versions of golang.org/x/crypto to try
(11)  ← backtrack: no more versions of github.com/xdg/scram to try
(10)  ← backtrack: no more versions of golang.org/x/sync to try
(9)     ← backtrack: no more versions of golang.org/x/text to try
(8)     ← backtrack: no more versions of github.com/golang/snappy to try
(7)     ← backtrack: no more versions of github.com/xdg/stringprep to try
(6)     ← backtrack: no more versions of github.com/go-stack/stack to try
(5)     ← backtrack: no more versions of go.mongodb.org/mongo-driver to try
(4)     ← backtrack: no more versions of github.com/patrickmn/go-cache to try
(3)     ← backtrack: no more versions of github.com/go-redis/redis to try
(2)     ← backtrack: no more versions of github.com/chrisyee1/mgo to try
(1)     ← backtrack: no more versions of github.com/caarlos0/env to try
  ✗ solving failed

Solver wall times by segment:
         b-list-pkgs: 1m52.7202579s
              b-gmal: 1m50.3605531s
     b-source-exists:    33.309546s
  b-deduce-proj-root:    294.6296ms
            new-atom:     17.3301ms
         select-atom:       5.451ms
             satisfy:      4.1508ms
            unselect:      3.9866ms
           backtrack:      3.9682ms
         select-root:      1.9962ms
               other:            0s

  TOTAL: 4m16.7218695s

Solving failure:
        (1) exit status 128
        (2) exit status 128
mvdan commented 3 years ago

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!