1

I am working on an App Engine app and am coming across this error running goapp serve:

Failed parsing input: parser: bad import "syscall" in vendor/golang.org/x/net/icmp/message.go

Which is apparently from Glide importing the entire golang.org/x/net package when I only wanted golang.org/x/net/context.

The import in my glide.yaml was:

- package: golang.org/x/net
  subpackages:
  - context

And the glide.lock file says

- name: golang.org/x/net
  version: 07b51741c1d6423d4a6abab1c49940ec09cb1aaf
  subpackages:
  - context

How would I keep net/icmp out of my build in goapp serve?

Zoe
  • 27,060
  • 21
  • 118
  • 148
Andy Haskell
  • 677
  • 5
  • 16

1 Answers1

0

I often had extra imports when using glide (a bit like in issue 101)

Just for testing, try re-populate your vendor folder using govendor

govendor list
govendor fetch +m

In my experience, the resulting list of dependencies is cleaner.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250