Skip to content

master can't compile without CGO_ENABLED=1 (zstd) #1081

Closed
@akhenakh

Description

@akhenakh

What version of Go are you using (go version)?

$ go version
go version go1.13.1 darwin/amd64

What version of Badger are you using?

master v1.6.1-0.20191012010444-dbe1cb90c815

Does this issue reproduce with the latest master?

yes

What are the hardware specifications of the machine (RAM, OS, Disk)?

macbook pro

What did you do?

updated badger from 1.6.0 to master

What did you expect to see?

compilation working without CGO_ENABLED=1

What did you see instead?

 go build github.com/DataDog/zstd: build constraints exclude all Go files in /Users/xxx/dev/go/pkg/mod/github.com/!data!dog/[email protected]  

Enabling cgo solved the issue (related to zstd), is it by choice or a bug, badger v2 will require cgo ?

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