Hi
It failed to create the package file because it encountered an invalid go file.
I guess its not required to fail so strongly.
$ go version
go version go1.6.2 linux/amd64
$ glide -v
glide version 0.10.2-86-g5865b8e
$ ll
total 8
drwxrwxr-x 2 mh-cbon mh-cbon 4096 9 juin 14:00 git
-rw-rw-r-- 1 mh-cbon mh-cbon 34 9 juin 14:00 main.go
-rw-rw-r-- 1 mh-cbon mh-cbon 0 9 juin 14:00 README.md
$ ll git/
total 0
-rw-rw-r-- 1 mh-cbon mh-cbon 0 9 juin 14:00 index.go
$ cat git/index.go
$ glide create
[INFO] Generating a YAML configuration file and guessing the dependencies
[INFO] Attempting to import from other package managers (use --skip-import to skip)
[ERROR] Failed to build an initial list of packages to scan: git/index.go:1:1: expected 'package', found 'EOF'
[ERROR] Error resolving local dependencies: git/index.go:1:1: expected 'package', found 'EOF'
hth
We should provide a message but we may not need to fail so strongly.
I've been musing on this issue a lot recently, since I've been working on the static analysis piece in vsolver. Deciding what's best to do when static analysis encounters a problem (which may or may not mean that the code won't compilable) is a big question.
My thoughts so far, in rough order:
I've had a few offline conversations on this. Moving and changes to 0.13 since in involves gps and it's still under debate.