mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
Fix building zot natively on FreeBSD (#3247)
fix: allow zot to build on a FreeBSD host (#3246) The build works as long as the protoc package is installed on the build host. This also fixes lint checks when building on FreeBSD, working around common lint complaints caused by the fact that rlim_t is int64 on FreeBSD. Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func DumpRuntimeParams(log log.Logger) {
|
||||
|
||||
err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit)
|
||||
if err == nil {
|
||||
evt = evt.Uint64("max. open files", uint64(rLimit.Cur)) //nolint: unconvert // required for *BSD
|
||||
evt = evt.Uint64("max. open files", uint64(rLimit.Cur)) //nolint: unconvert,gosec // required for *BSD
|
||||
}
|
||||
|
||||
if content, err := os.ReadFile("/proc/sys/net/core/somaxconn"); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user