Results 54 comments of Alan Shreve

Ideally one could build a simple tool that parses requirements.txt, setup.py, Gemfile.lock, package.json, pom.xml, Go's vendor file, etc and spits out two files: a human readable one and a machine...

Thanks for opening this. I think it's definitely go-update's problem to solve, and I don't have a clean solution beyond simply running os.Remove(oldBinaryPath) and ignoring "file does not exist" errors...

Wow, that's quite a list. I agree with you about the options, and I'll add one more suggestion. Windows has an API for making files hidden (via SetFileAttributes). Making the...

Alright, I just pushed a fix that makes sure the file it tries to rename to is always deleted before attempting the move. I'm leaving this issue open though because...

Urgh, didn't want github to auto-close this. The hidden file mechanism is implemented now, which is a little less onerous, but I want to leave this open until such point...

Woah, definitely didn't realize it did that. Looks like we'll need to be a bit more sophisticated. Thanks for pointing that out!

Yep, I think that's an all around good solution! I'll take a crack at this when I have some time.

Would log.Lazy with a context value work for you? Or is that too clumsy? ``` x := 1 l := log.New("x", log.Lazy{func() int { return x }}) l.Info("test") # x=1...

What is the API you wished existed for this?

You're missing key values for these values. Instead try this (I added keys for "id", "type" and "uuid"): ``` go c.log = Log.New("connection", "id", id.String(), "ip", host, "port", port, "type",...