Skip to content

How to disable CGO? #771

@xaionaro

Description

@xaionaro

Hello.

I need to set something like CGO_ENABLED=0. There's some code that has different implementations for cases if CGo is supported (+build cgo) and if CGo is not supported (+build !cgo). And I need to compile the second variant. It would be nice if you would help me to understand how can I do it without manually modifying all my dependencies (which could use CGo)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cgoCGo and libc related issuesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions