On Tue, Sep 17, 2024 at 3:26 AM twp...@gmail.com <twpa...@gmail.com> wrote:
>
> > Should work, AIUI, even with the issues you mention. Or is there something 
> > else going on that I'm unaware of?
>
> The problem is not running the tests. The problem is that the test cache is 
> not invalidated correctly.

We are suggesting that you change the umask in the test itself.

This is perfectly reliable as tests are not run in parallel (unless
you explicitly call t.Parallel).  The umask will not affect any code
other than the test code itself.

You can see an example of this in the Go standard library:
https://go.googlesource.com/go/+/refs/heads/master/src/os/os_unix_test.go#231

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVqeK7A%3DYTvZnZEVK0XNCrzM7%2BXDqCKw0PXqcPZKSUFgg%40mail.gmail.com.

Reply via email to