On 2026-03-08 07:43:59, Shengjing Zhu wrote:
> On Fri, Mar 6, 2026 at 4:55 AM Antoine Beaupre <[email protected]> wrote:
> [...]
>> This was originally filed upstream as:
>>
>> https://github.com/xorpaul/g10k/issues/249
>>
>> But I found out this is actually an issue with the Debian build
>> system. I can't reproduce the issue when building the source code with
>> a plain `go build`.
>>
>
> Do you compare building upstream code with the `-race` flag to `go build`?
>
> https://salsa.debian.org/go-team/packages/g10k/-/blob/debian/0.9.10-1/debian/rules?ref_type=tags#L11

Interesting!

If I remove the `-race` flag to `go build`, the issue goes away!

But I'll note that this flag is also present upstream:

https://github.com/xorpaul/g10k/blob/f91099adb1071e566a720478eb929d32d243880d/Makefile#L18C3-L18C25

This was introduced in an unrelated commit here:

https://github.com/xorpaul/g10k/commit/12f3a905e078c57c2bb5a4d66f80e6f060c9d77d#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52

So perhaps the simplest fix is to just chuck that flag out, i'll try a
local build of this.

Thanks for that finding, it's a gem!

a.

-- 
The fundamental cause of the trouble is that in the modern world the
stupid are cocksure while the intelligent are full of doubt.
                       - Bertrand Russell, The Triumph of Stupidity, 1933

Reply via email to