Skip to content

Warn and panic when CGO_ENABLED is set to 0 #11

@Dawnnnnnn

Description

@Dawnnnnnn

I'm not sure which library caused the problem. I wrote a demo to verify, it said

   ⨯ release failed after 0.53s error=failed to build for darwin_arm64: exit status 2: # golang.design/x/clipboard
../../../go/pkg/mod/golang.design/x/clipboard@v0.5.1/clipboard.go:90:14: undefined: read
../../../go/pkg/mod/golang.design/x/clipboard@v0.5.1/clipboard.go:110:18: undefined: write
../../../go/pkg/mod/golang.design/x/clipboard@v0.5.1/clipboard.go:125:9: undefined: watch

demo

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions