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

Cannot import gopkg.in package from glide #799

Closed
emersion opened this issue Jul 4, 2017 · 4 comments
Closed

Cannot import gopkg.in package from glide #799

emersion opened this issue Jul 4, 2017 · 4 comments
Assignees

Comments

@emersion
Copy link

emersion commented Jul 4, 2017

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

go version go1.8.3 linux/amd64
v0.1.0-196-g5c02575

What dep command did you run?

dep init -v
Importing configuration from glide. These are only initial constraints, and are further refined during the solve process.
Detected glide configuration files...
  Loading /home/simon/go/src/github.com/emersion/neutron/glide.yaml
  Loading /home/simon/go/src/github.com/emersion/neutron/glide.lock
Converting from glide.yaml and glide.lock...
  Using master as initial constraint for imported dep github.com/go-macaron/binding
  Using master as initial constraint for imported dep github.com/mxk/go-imap
  Using master as initial constraint for imported dep golang.org/x/crypto
  Using master as initial constraint for imported dep golang.org/x/text
 is not a valid version for the package gopkg.in/macaron.v1()

What did you expect to see?

Not an error.

What did you see instead?

An error: is not a valid version for the package gopkg.in/macaron.v1()

Here is my glide.yaml:

package: github.com/emersion/neutron
import:
- package: github.com/go-macaron/binding
- package: github.com/mxk/go-imap
  subpackages:
  - imap
- package: golang.org/x/crypto
  subpackages:
  - openpgp
  - openpgp/armor
  - openpgp/packet
- package: golang.org/x/text
  subpackages:
  - encoding
  - encoding/charmap
- package: gopkg.in/macaron.v1

And here is my glide.lock:

hash: 76aabaabbba85ccb0a942de80badf5ab567a2094dd3723b99ec324a15993d555
updated: 2016-10-21T17:09:00.894212947+02:00
imports:
- name: github.com/go-macaron/binding
  version: 9440f336b443056c90d7d448a0a55ad8c7599880
- name: github.com/go-macaron/inject
  version: d8a0b8677191f4380287cfebd08e462217bac7ad
- name: github.com/mxk/go-imap
  version: 531c36c3f12d6a03ea766b07a77314aa51ec17f3
  subpackages:
  - imap
- name: github.com/Unknwon/com
  version: 28b053d5a2923b87ce8c5a08f3af779894a72758
- name: golang.org/x/crypto
  version: 6318898455d3ac20e7e44d0a080d43f8c3ff120b
  subpackages:
  - cast5
  - openpgp
  - openpgp/armor
  - openpgp/elgamal
  - openpgp/errors
  - openpgp/packet
  - openpgp/s2k
- name: golang.org/x/text
  version: 1e65e9bf72c307081cea196f47ef37aed17eb316
  subpackages:
  - encoding
  - encoding/charmap
  - encoding/internal
  - encoding/internal/identifier
  - transform
- name: gopkg.in/ini.v1
  version: 6e4869b434bd001f6983749881c7ead3545887d8
- name: gopkg.in/macaron.v1
  version: 4974334b10dbb6f5c0e17f4c10555ff050a16329
testImports: []
@carolynvs
Copy link
Collaborator

Thanks for reporting this bug! 👍

@carolynvs carolynvs self-assigned this Jul 5, 2017
@sdboyer
Copy link
Member

sdboyer commented Jul 21, 2017

Feels like this might be related to a bug I vaguely recall where ListVersions() was returning zero versions from certain gopkg.in paths. I can't find the issue for that offhand, though - I think the surfaced symptom was a panic in a solver method.

@carolynvs
Copy link
Collaborator

I think this was fixed by #715. @emersion Would you please try again with the latest dep and let me know how it goes?

@emersion
Copy link
Author

I can confirm this bug is fixed with the latest dep!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants