uber-go / fx

A dependency injection based application framework for Go.
https://uber-go.github.io/fx/
MIT License
5.68k stars 287 forks source link

Glide installing wrong version of yarpc #110

Closed kwojcik closed 7 years ago

kwojcik commented 7 years ago

Looks like for a project that only has uberfx in its glide.yaml, that glide is not respecting fx's requirements in it's own glide.yaml.

From the current fx master e0c5d60f3dba78297ff20b61ba1626defb86efaf glide.yaml:

- package: go.uber.org/yarpc
  version: v1.0.0-rc1

And it's glide.lock:

- name: go.uber.org/yarpc
  version: 6048dff5656e15859918b9d40fdf12199d0c6e3d

My code's glide.yaml:

import:
- package: go.uber.org/fx
  version: master

And my glide.lock after running glide up:

- name: go.uber.org/yarpc
  version: 7c6a4c5618cb38228ef9f0eb85ea71d8fc5af2c4

That's an old version from halloween

commit 7c6a4c5618cb38228ef9f0eb85ea71d8fc5af2c4
Author: Grayson Koonce <grayson.koonce@gmail.com>
Date:   Mon Oct 31 17:08:57 2016 -0700

    Use standard library's context package (#394)
HelloGrayson commented 7 years ago

Are you using at least Glide 0.12.3?

$ glide -version
glide version 0.12.3

Packages using the version keyword in glide.yaml basically require at least 0.12.3.

glibsm commented 7 years ago

If that doesn't work, glide cc; rm -rf vendor/ glide.lock is worth a shot. Sometimes glide can confuse itself with a weird state of the cache

kwojcik commented 7 years ago

updating glide to 0.12.3 did the trick.