-
Notifications
You must be signed in to change notification settings - Fork 1k
panic: canary - shouldn't be possible package #170
Comments
btw there was an old issue too from when I tried: #110 |
might also be #115 |
https://github.com/chai2010/gettext-go/blob/master/gettext/hello.go has 2 interesting things: So the repo is not really broken, since the hello.go file doesn't actually ever get built, but that file does claim to import its parent directory. It's parent does not, in fact, have any .go files. So while I'm guessing this could be fixed by some changes in hello.go I'm guessing the solver shouldn't panic... |
It is improperly importing github.com/chai2010/gettext-go/ instead of github.com/chai2010/gettext-go/gettext Before the fix: $ go build hello.go hello.go:12:2: no buildable Go source files in /storage/gopath/src/github.com/chai2010/gettext-go After the fix: $ go build hello.go $ ./hello 你好, 世界! This is also causing golang/dep#170 since dep doesn't like importing the parent dir (not sure what's wrong with it though)
For sure not :) We're trying to hash out a bunch of questions right now related to which imports we include from static analysis. It'd probably be good for me/someone to open an issue for this more specifically on gps. On balance, though, this is kinda good - I hit that panic once six months ago while experimenting with k8s, but I hadn't yet eliminated nondeterminism in solve order, so I couldn't replicate it. It's rankled me ever since, but without a panic sitting in front of me, other things took priority. This gives me a concrete case that hits it, so I can finally get rid of that sucker :) |
@eparis we've made a bunch of improvements here, and I think this one should be fixed now. Could you give it another whirl, and let me know if this particular problem still exists? Thanks! |
@ericchiang @cblecker looks like its time to try dep again! |
Well, the following script didn't panic
But Anything I can run to help debug? |
@ericchiang try it with The first run is often quite expensive, as there's a ton of data it's cloning down. Subsequent runs should be faster. 30 minutes seems much too long, though. |
@sdboyer it hung for about an hour after seeming to download the results. For some reason rerunning prevented the hanging. He's the results form a second run:
Log file attached. |
Sorry ran this outside my /tmp dir to avoid the disk space issue. Result is: (logs here: https://gist.github.com/ericchiang/40820536d099af696622d50a21f99457)
Seems like the original issue is solved, but the solver still reports un-resolvable constraints with the Kubernetes repo. Probably a different issue. |
Well that's weird; it clearly doesn't. The only thing I see even vaguely like that is the ignored main. But that's just importing itself, which I'm pretty sure we got handled months ago. I'll investigate! |
Very weird. Seems we need more instrumentation. Do you have the output from the long-hanging run? |
Oh, yeah, so - the revision y'all currently have locked in - 1468fd0db20598383c9393cccaa547de6ad99e5e - contains uncompilable code in that ignored main file. We do currently look at a small subset of such files - in particular, ignored mains - which causes it to choke. Also, you need to actually put it in the real GOPATH-relative basedir (we're not rid of GOPATH yet) - so, (Once that problem is solved, there's a panic with https://bitbucket.org/ww/goautoneg that I'm working out - my hg implementation was wrong, I didn't realize it was possible to only have the "tip" version). |
Helps with golang/dep#170
Helps with golang#170
The issue with goautoneg turned out to be a totally different bug than I thought (fixed by #514); my original model of hg versions was OK. Where it's currently sticking for me sticks for me now is with |
@sdboyer thanks I can see about updating the inotify dependency. I'm confused why that would impact dep's analysis though, since godep will restore it in the GOPATH at the commit specified by Kubernetes. Mind elaborating a bit? |
sure - i was just saying that because i hadn't yet run Once
|
Helps with golang#170
Closing this out, I don't think this qualifies as an actual bug anymore. |
checkout github.com/kubernetes/kubernetes @ db2dc78e6398ba673e68e94bd17d28a97dd4a902
run
godep restore
to make GOPATH == what's in vendorinside kubernetes
rm -rf vendor Godeps
dep init
from version 21f357aThe text was updated successfully, but these errors were encountered: