From 5a6992de9b92e1d934d5120ee7efb0229424ebea Mon Sep 17 00:00:00 2001 From: Heman Jayam Date: Mon, 22 Jan 2024 10:01:49 -0600 Subject: [PATCH 1/2] using buildmode --- .goreleaser.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3e0065e..40a9104 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,8 +10,7 @@ builds: - main: cmd/plax/main.go id: plax binary: plax - env: - - CGO_ENABLED=0 + buildmode: 'c-shared' goos: - linux - darwin @@ -22,8 +21,7 @@ builds: - main: cmd/plaxrun/main.go id: plaxrun binary: plaxrun - env: - - CGO_ENABLED=0 + buildmode: 'c-shared' goos: - linux - darwin @@ -34,8 +32,6 @@ builds: - main: cmd/plaxrun/plugins/report/stdout/main.go id: plaxrun_report_stdout binary: plaxrun_report_stdout - env: - - CGO_ENABLED=0 goos: - linux - darwin @@ -46,8 +42,6 @@ builds: - main: cmd/plaxrun/plugins/report/octane/main.go id: plaxrun_report_octane binary: plaxrun_report_octane - env: - - CGO_ENABLED=0 goos: - linux - darwin @@ -58,8 +52,6 @@ builds: - main: cmd/plaxrun/plugins/report/rp/main.go id: plaxrun_report_rp binary: plaxrun_report_rp - env: - - CGO_ENABLED=0 goos: - linux - darwin @@ -70,8 +62,6 @@ builds: - main: cmd/yamlincl/main.go id: yamlincl binary: yamlincl - env: - - CGO_ENABLED=0 goos: - linux - darwin From 173e3ac54794bc92a4aeafdcb61ba728d5a02c97 Mon Sep 17 00:00:00 2001 From: Heman Jayam Date: Mon, 22 Jan 2024 10:12:04 -0600 Subject: [PATCH 2/2] updates flags as they are getting depricated --- .goreleaser.yml | 14 ++++++++++++-- Makefile | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 40a9104..3e0065e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,7 +10,8 @@ builds: - main: cmd/plax/main.go id: plax binary: plax - buildmode: 'c-shared' + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -21,7 +22,8 @@ builds: - main: cmd/plaxrun/main.go id: plaxrun binary: plaxrun - buildmode: 'c-shared' + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -32,6 +34,8 @@ builds: - main: cmd/plaxrun/plugins/report/stdout/main.go id: plaxrun_report_stdout binary: plaxrun_report_stdout + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -42,6 +46,8 @@ builds: - main: cmd/plaxrun/plugins/report/octane/main.go id: plaxrun_report_octane binary: plaxrun_report_octane + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -52,6 +58,8 @@ builds: - main: cmd/plaxrun/plugins/report/rp/main.go id: plaxrun_report_rp binary: plaxrun_report_rp + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -62,6 +70,8 @@ builds: - main: cmd/yamlincl/main.go id: yamlincl binary: yamlincl + env: + - CGO_ENABLED=0 goos: - linux - darwin diff --git a/Makefile b/Makefile index 4f7c5f6..4af9a16 100644 --- a/Makefile +++ b/Makefile @@ -33,11 +33,11 @@ clean: .PHONY: dist dist: clean - goreleaser release --skip-publish --rm-dist + goreleaser release --skip=publish --clean .PHONY: release release: clean - goreleaser release --rm-dist + goreleaser release --clean # A demonstratio of using a Go plug-in to load a MySQL driver at # runtime for use in a Plax test that uses a SQL channel to talk to