Skip to content

Bug: Cannot build on 32-bit system #935

@adlternative

Description

@adlternative

I tried to incorporate zoekt into gitea and encountered an error on i386:

# github.com/sourcegraph/zoekt
Error: ../../../go/pkg/mod/github.com/sourcegraph/[email protected]/matchtree.go:675:9: cannot use maxUInt32 (untyped int constant 4294967295) as int value in assignment (overflows)
Error: Process completed with exit code 1.

This seems like a uint32 overflow into int on a 32-bit machine. Does anyone know how to fix this?

Zoekt Version: github.com/sourcegraph/zoekt v0.0.0-20240410142517-ab1b8f09199e
See: https://github.com/go-gitea/gitea/actions/runs/14281855193/job/40032337115?pr=33850

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions