Re: [go-nuts] Re: Windows syscall.Open() change to fix os.Rename() & .Remove()

2019-08-04 Thread Liam Breck
If you can point to an example that depends on the windows-specific error, could you post it in the issue? On Sun, Aug 4, 2019, 2:16 AM Reto wrote: > On Wed, Jul 31, 2019 at 07:00:46PM -0700, Liam wrote: > > In this issue, Microsoft suggested that Go on Windows switch to > Unix-like > > behavio

Re: [go-nuts] Re: Windows syscall.Open() change to fix os.Rename() & .Remove()

2019-08-04 Thread Reto
>They did: >https://github.com/golang/go/issues/32088#issuecomment-502850674 No, that's not a member of the go team. >TL;DR; setting it by default would move the things to a little bit more > >POSIXy, but >possibly creating more hiddent deviations. yeah but that wasn't my question was it? --

Re: [go-nuts] Re: Windows syscall.Open() change to fix os.Rename() & .Remove()

2019-08-04 Thread Tamás Gulácsi
2019. augusztus 4., vasárnap 11:15:58 UTC+2 időpontban Reto a következőt írta: > > On Wed, Jul 31, 2019 at 07:00:46PM -0700, Liam wrote: > > In this issue, Microsoft suggested that Go on Windows switch to > Unix-like > > behavior in Go 1.14: > > https://github.com/golang/go/issues/32088 > >

Re: [go-nuts] Re: Windows syscall.Open() change to fix os.Rename() & .Remove()

2019-08-04 Thread Reto
On Wed, Jul 31, 2019 at 07:00:46PM -0700, Liam wrote: > In this issue, Microsoft suggested that Go on Windows switch to Unix-like > behavior in Go 1.14: > https://github.com/golang/go/issues/32088 > > I believe this will change early in pre-release 1.14. May I inquire as to why you believe that?

[go-nuts] Re: Windows syscall.Open() change to fix os.Rename() & .Remove()

2019-07-31 Thread Liam
Microsoft recommends changing syscall.Open() for GOOS=windows to fix this. Pls reply if you know of existing apps that rely on it. This code fails with a "sharing violation" on Windows. That behavior is undocumented in package "os". path := "rename-after-open" fd, err := os.OpenFile(path, os.O_