Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep constraint not work correct #734

Closed
@elvizlai

Description

@elvizlai

What version of Go (go version) and dep (git describe --tags) are you using?

go version go1.8.3 darwin/amd64

v1.1-3647-g30908ea5

What dep command did you run?

dep ensure -update -v

Root project is "github.com/wothing/17mei-butler"
 105 transitively valid internal packages
 36 external packages imported from 29 projects
(0)   ✓ select (root)
(1)	? attempt github.com/PuerkitoBio/goquery with 1 pkgs; 19 versions to try
(1)	    try github.com/PuerkitoBio/[email protected]
(1)	✓ select github.com/PuerkitoBio/[email protected] w/1 pkgs
(2)	? attempt github.com/andybalholm/cascadia with 1 pkgs; 2 versions to try
(2)	    try github.com/andybalholm/cascadia@master
(2)	✓ select github.com/andybalholm/cascadia@master w/1 pkgs
(3)	? attempt github.com/arstd/light with 1 pkgs; 10 versions to try
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/[email protected]
(4)	✗   github.com/arstd/[email protected] not allowed by constraint master:
(4)	    master from (root)
(3)	    try github.com/arstd/light@master
(3)	✓ select github.com/arstd/light@master w/1 pkgs
(4)	? attempt github.com/coreos/etcd with 1 pkgs; 112 versions to try
(4)	    try github.com/coreos/[email protected]
(4)	✓ select github.com/coreos/[email protected] w/3 pkgs
(5)	? attempt github.com/dgrijalva/jwt-go with 1 pkgs; 16 versions to try
(5)	    try github.com/dgrijalva/[email protected]
(5)	✓ select github.com/dgrijalva/[email protected] w/1 pkgs
(6)	? attempt github.com/garyburd/redigo with 1 pkgs; 3 versions to try
(6)	    try github.com/garyburd/[email protected]
(6)	✓ select github.com/garyburd/[email protected] w/2 pkgs
(7)	? attempt github.com/axgle/mahonia with 1 pkgs; 1 versions to try
(7)	    try github.com/axgle/mahonia@master
(7)	✓ select github.com/axgle/mahonia@master w/1 pkgs
(8)	? attempt github.com/pborman/uuid with 1 pkgs; 4 versions to try
(8)	    try github.com/pborman/[email protected]
(8)	✓ select github.com/pborman/[email protected] w/1 pkgs
(9)	? attempt github.com/wothing/worpc with 1 pkgs; 1 versions to try
(9)	    try github.com/wothing/worpc@master
(9)	✓ select github.com/wothing/worpc@master w/1 pkgs
(10)  ? attempt github.com/golang/protobuf with 1 pkgs; 2 versions to try
(10)      try github.com/golang/protobuf@master
(10)  ✓ select github.com/golang/protobuf@master w/1 pkgs
(11)  ? attempt github.com/elgs/gostrgen with 1 pkgs; 1 versions to try
(11)      try github.com/elgs/gostrgen@master
(11)  ✓ select github.com/elgs/gostrgen@master w/1 pkgs
(12)  ? revisit github.com/golang/protobuf to add 1 pkgs
(12)    ✓ include 3 more pkgs from github.com/golang/protobuf@master
(12)  ? attempt github.com/mozillazg/go-pinyin with 1 pkgs; 18 versions to try
(13)      try github.com/mozillazg/[email protected]
(13)  ✓ select github.com/mozillazg/[email protected] w/1 pkgs
(13)  ? attempt github.com/bitly/go-simplejson with 1 pkgs; 5 versions to try
(14)      try github.com/bitly/[email protected]
(14)  ✓ select github.com/bitly/[email protected] w/1 pkgs
(14)  ? attempt github.com/tealeg/xlsx with 1 pkgs; 13 versions to try
(15)      try github.com/tealeg/[email protected]
(16)  ✗   github.com/tealeg/[email protected] not allowed by constraint master:
(16)      master from (root)
(15)      try github.com/tealeg/[email protected]
(16)  ✗   github.com/tealeg/[email protected] not allowed by constraint master:
(16)      master from (root)
(15)      try github.com/tealeg/[email protected]
(16)  ✗   github.com/tealeg/[email protected] not allowed by constraint master:
(16)      master from (root)
(15)      try github.com/tealeg/[email protected]
(16)  ✗   github.com/tealeg/[email protected] not allowed by constraint master:
(16)      master from (root)
(15)      try github.com/tealeg/[email protected]
(16)  ✗   github.com/tealeg/[email protected] not allowed by constraint master:
(16)      master from (root)
(15)      try github.com/tealeg/xlsx@master
(15)  ✓ select github.com/tealeg/xlsx@master w/1 pkgs
(15)  ? attempt golang.org/x/net with 1 pkgs; 4 versions to try
(16)      try golang.org/x/net@master
(16)  ✓ select golang.org/x/net@master w/2 pkgs
(16)  ? attempt github.com/wothing/wonaming with 1 pkgs; 1 versions to try
(17)      try github.com/wothing/wonaming@master
(17)  ✓ select github.com/wothing/wonaming@master w/1 pkgs
(17)  ? attempt github.com/ugorji/go with 1 pkgs; 1 versions to try
(18)      try github.com/ugorji/go@master
(18)  ✓ select github.com/ugorji/go@master w/1 pkgs
(18)  ? revisit golang.org/x/net to add 1 pkgs
(19)    ✓ include 1 more pkgs from golang.org/x/net@master
(18)  ? attempt github.com/wothing/timing with 1 pkgs; 1 versions to try
(20)      try github.com/wothing/timing@master
(20)  ✓ select github.com/wothing/timing@master w/1 pkgs
(19)  ? attempt github.com/wothing/caldav-go with 2 pkgs; 1 versions to try
(21)      try github.com/wothing/caldav-go@master
(21)  ✓ select github.com/wothing/caldav-go@master w/11 pkgs
(20)  ? attempt github.com/smartystreets/goconvey with 1 pkgs; 17 versions to try
(22)      try github.com/smartystreets/[email protected]
(22)  ✓ select github.com/smartystreets/[email protected] w/3 pkgs
(21)  ? attempt github.com/jtolds/gls with 1 pkgs; 3 versions to try
(23)      try github.com/jtolds/[email protected]
(23)  ✓ select github.com/jtolds/[email protected] w/1 pkgs
(22)  ? attempt github.com/gopherjs/gopherjs with 1 pkgs; 6 versions to try
(24)      try github.com/gopherjs/gopherjs@master
(24)  ✓ select github.com/gopherjs/gopherjs@master w/1 pkgs
(23)  ? attempt github.com/nsqio/go-nsq with 1 pkgs; 16 versions to try
(25)      try github.com/nsqio/[email protected]
(25)  ✓ select github.com/nsqio/[email protected] w/1 pkgs
(24)  ? attempt github.com/mreiferson/go-snappystream with 1 pkgs; 7 versions to try
(26)      try github.com/mreiferson/[email protected]
(26)  ✓ select github.com/mreiferson/[email protected] w/2 pkgs
(25)  ? attempt github.com/wothing/log with 1 pkgs; 2 versions to try
(27)      try github.com/wothing/log@master
(27)  ✓ select github.com/wothing/log@master w/1 pkgs
(26)  ? attempt google.golang.org/grpc with 3 pkgs; 14 versions to try
(28)      try google.golang.org/[email protected]
(28)  ✓ select google.golang.org/[email protected] w/14 pkgs
(27)  ? revisit golang.org/x/net to add 3 pkgs
(29)    ✓ include 7 more pkgs from golang.org/x/net@master
(27)  ? attempt github.com/lib/pq with 1 pkgs; 6 versions to try
(30)      try github.com/lib/pq@master
(30)  ✓ select github.com/lib/pq@master w/2 pkgs
(28)  ? attempt github.com/viki-org/dnscache with 1 pkgs; 1 versions to try
(31)      try github.com/viki-org/dnscache@master
(31)  ✓ select github.com/viki-org/dnscache@master w/1 pkgs
(29)  ? attempt golang.org/x/crypto with 3 pkgs; 1 versions to try
(32)      try golang.org/x/crypto@master
(32)  ✓ select golang.org/x/crypto@master w/6 pkgs
(30)  ? attempt gopkg.in/jackc/pgx.v2 with 1 pkgs; 15 versions to try
(33)      try gopkg.in/jackc/[email protected]
(33)  ✓ select gopkg.in/jackc/[email protected] w/1 pkgs
(31)  ? revisit google.golang.org/grpc to add 1 pkgs
(34)    ✓ include 1 more pkgs from google.golang.org/[email protected]
(31)  ? attempt github.com/urfave/negroni with 1 pkgs; 5 versions to try
(35)      try github.com/urfave/[email protected]
(35)  ✓ select github.com/urfave/[email protected] w/1 pkgs
(32)  ? attempt github.com/smartystreets/assertions with 1 pkgs; 8 versions to try
(36)      try github.com/smartystreets/[email protected]
(36)  ✓ select github.com/smartystreets/[email protected] w/3 pkgs
(33)  ? attempt qiniupkg.com/api.v7 with 2 pkgs; 8 versions to try
(37)      try qiniupkg.com/[email protected]
(37)  ✓ select qiniupkg.com/[email protected] w/4 pkgs
(34)  ? attempt qiniupkg.com/x with 2 pkgs; 9 versions to try
(38)      try qiniupkg.com/[email protected]
(38)  ✓ select qiniupkg.com/[email protected] w/2 pkgs
(35)  ? attempt github.com/julienschmidt/httprouter with 1 pkgs; 6 versions to try
(39)      try github.com/julienschmidt/[email protected]
(39)  ✓ select github.com/julienschmidt/[email protected] w/1 pkgs
(36)  ? attempt google.golang.org/genproto with 1 pkgs; 3 versions to try
(40)      try google.golang.org/genproto@master
(40)  ✓ select google.golang.org/genproto@master w/1 pkgs
(37)  ? revisit github.com/golang/protobuf to add 1 pkgs
(41)    ✓ include 2 more pkgs from github.com/golang/protobuf@master
(37)  ? revisit qiniupkg.com/x to add 5 pkgs
(42)    ✓ include 7 more pkgs from qiniupkg.com/[email protected]
(37)  ? attempt golang.org/x/text with 2 pkgs; 1 versions to try
(43)      try golang.org/x/text@master
(43)  ✓ select golang.org/x/text@master w/9 pkgs
  ✓ found solution with 104 packages from 37 projects

Solver wall times by segment:
              b-gmal: 9.894342526s
     b-source-exists: 7.047875142s
     b-list-versions:  2.01006355s
         select-root:  52.860936ms
             satisfy:  19.960077ms
         select-atom:  17.121985ms
            new-atom:   1.561654ms
         b-list-pkgs:    465.999µs
          b-pair-rev:    267.365µs
               other:     245.21µs
           b-matches:    110.314µs
  b-deduce-proj-root:     99.304µs
      b-pair-version:     39.461µs
            add-atom:     30.599µs

  TOTAL: 19.045044122s

What did you expect to see?

I modifed Gopkg.toml to set grpc to version v1.2.1

[[constraint]]
  name = "google.golang.org/grpc"
  version = "1.2.1"

I also tried set

Tring use override, but still not work.

What did you see instead?

But I still got v1.4.0 instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions