Skip to content

Commit dcf106e

Browse files
authored
remove explicit CGO_ENABLED=0 (#222)
Signed-off-by: Bryce Palmer <[email protected]>
1 parent c16a400 commit dcf106e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Global environment variables for builds.
22
env:
3-
- CGO_ENABLED=0
43
- GO111MODULE=on
54
- GOPROXY=https://proxy.golang.org|direct
65
- VERSION_PKG=github.com/operator-framework/helm-operator-plugins/internal/version

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test-sanity: generate fix lint ## Test repo formatting, linting, etc.
5757
# Build manager binary
5858
.PHONY: build
5959
build:
60-
CGO_ENABLED=0 mkdir -p $(BUILD_DIR) && go build $(GO_BUILD_ARGS) -o $(BUILD_DIR) ./
60+
mkdir -p $(BUILD_DIR) && go build $(GO_BUILD_ARGS) -o $(BUILD_DIR) ./
6161

6262
.PHONY: setup-lint
6363
setup-lint: ## Setup the lint

pkg/plugins/hybrid/v1alpha/scaffolds/internal/templates/dockerfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ COPY api/ api/
5757
COPY controllers/ controllers/
5858
5959
# Build
60-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
60+
RUN GOOS=linux GOARCH=amd64 go build -a -o manager main.go
6161
6262
FROM registry.access.redhat.com/ubi8/ubi-micro:8.7
6363

testdata/hybrid/memcached-operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY api/ api/
1515
COPY controllers/ controllers/
1616

1717
# Build
18-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
18+
RUN GOOS=linux GOARCH=amd64 go build -a -o manager main.go
1919

2020
FROM registry.access.redhat.com/ubi8/ubi-micro:8.7
2121

0 commit comments

Comments
 (0)