[GODRIVER-1436] gcc is required with w1.2.0 Created: 11/Dec/19 Updated: 06/Jan/20 Resolved: 06/Jan/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jérôme Laforge | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
golang:1.13.5-alpine (Go docker image alpine linux) |
||
| Description |
|
with the GODRIVER v1.2.0, the build need gcc that is not present on golang:1.13.5-alpine. As this driver is pure Go (even if Datadog dependence need it) we don't need to have gcc.
error: |
| Comments |
| Comment by Divjot Arora (Inactive) [ 16/Dec/19 ] |
|
Can you try compiling with the CGO_ENABLED=0 environment variable (e.g. CGO_ENABLED=0 go build...)? For zstd support, we have https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/compression_cgo.go and https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/compression_nocgo.go defined using build tags to ensure that users can build the driver without cgo support if they are not using the feature. |