Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix): Make test-unit target execution on macOS by disabling CGO_ENABLED
In Linux environments, it is necessary to set `CGO_ENABLED=1` for running unit tests with the `-race` flag. However, enabling CGO_ENABLED on macOS can lead to issues, including warnings such as: ``` ld: warning: ‘/private/var/folders/xf/_py4d4yn7qqdlr5pym3pxvnc0000gn/T/go-link-38050737/000012.o’ has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626 ``` By disabling it all works fine. PS.: we do not enable CGO for our builds
- Loading branch information