Skip to content

Commit

Permalink
Build w/ CGO_ENABLED=0
Browse files Browse the repository at this point in the history
The CircleCI go build images' toolchain depends on a version of GLIBC
that is higher than the version that ships on Ubuntu 20.04. This means
users trying to install the released binaries on Ubuntu 20.04 will
see:

```
$ bashgpt
bashgpt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not
  found (required by bashgpt)
bashgpt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not
  found (required by bashgpt)
```

This commit attempts to mitigate the problem by building w/
CGO_ENABLED=0 as suggested by:
golang/go#57328
  • Loading branch information
mikeb26 committed Nov 8, 2023
1 parent a244fb5 commit 7722df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export GOFLAGS=-mod=vendor
build: cmd/bashgpt

cmd/bashgpt: vendor FORCE
go build -o bashgpt cmd/bashgpt/*.go
CGO_ENABLED=0 go build -o bashgpt cmd/bashgpt/*.go

vendor: go.mod
go mod download
Expand Down

0 comments on commit 7722df5

Please sign in to comment.