Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 541 forks source link

Got wrong dependencie #959

Open cooppor opened 6 years ago

cooppor commented 6 years ago

glide.yaml

package: example.com/foo
import:
- package: github.com/astaxie/beego
  version: ^1.9.2
  subpackages:
  - context/param
  - logs
  - session/mysql
- package: github.com/go-sql-driver/mysql
  version: ^1.3.0
- package: github.com/go-xorm/xorm
  version: ^0.6.4
testImport:
- package: github.com/smartystreets/goconvey
  version: ^1.6.3
  subpackages:
  - convey

the package github.com/go-xorm/xorm has sub dependencie github.com/go-xorm/core, after glide up , got wrong dependencie code

line 114 via https://github.com/go-xorm/core/blob/master/type.go#L104

    Bool    = "BOOL"
    Boolean = "BOOLEAN"

code in vendor

Bool = "BOOL"

line 104 Boolean = "BOOLEAN" was missed.

so, when I build the project, got issue

vendor/github.com/go-xorm/xorm/dialect_postgres.go:784:9: undefined: core.Boolean
2017/12/18 16:19:47 ERROR    ▶ 0003 Failed to build the application: # example.com/foo/vendor/github.com/go-xorm/xorm
vendor/github.com/go-xorm/xorm/dialect_postgres.go:784:9: undefined: core.Boolean

part of glide.lock

- name: github.com/go-xorm/builder
  version: c8871c857d2555fbfbd8524f895be5386d3d8836
- name: github.com/go-xorm/core
  version: 71c1070a861118827352b1394eb86cbfeef5c513
- name: github.com/go-xorm/xorm
  version: 1933dd69e294c0a26c0266637067f24dbb25770c

go-xorm/xorm 's version (1933dd69e294c0a26c0266637067f24dbb25770c) is the latest release. go-xorm/core's version (71c1070a861118827352b1394eb86cbfeef5c513) committed on Aug 22, 2017, has 5 more new commit. go-xorm/builder 's version (c8871c857d2555fbfbd8524f895be5386d3d8836) committed on May 19, 2017, has 3 more new commit.

WHY ??

cafra commented 6 years ago

i has this problem too