From 7ff0a39c023c83cc2546462fa4ae82223ce25d5b Mon Sep 17 00:00:00 2001 From: Philipp Staiger <9325003+lippl@users.noreply.github.com> Date: Thu, 1 Jul 2021 02:28:24 +0200 Subject: [PATCH] fix(suites): disable cgo for delve during development (#2129) #2101 introduced a minor regression when using the authelia scripts suite for developing. The following issues occurred: ``` [00] # runtime/cgo [00] cgo: exec gcc: exec: "gcc": executable file not found in $PATH ``` Adding the CGO_ENABLED=0 before the dlv build command in the run-backend-dev.sh fixed the issue. --- .../example/compose/authelia/resources/run-backend-dev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/suites/example/compose/authelia/resources/run-backend-dev.sh b/internal/suites/example/compose/authelia/resources/run-backend-dev.sh index c7b636cbe..01f3e2991 100755 --- a/internal/suites/example/compose/authelia/resources/run-backend-dev.sh +++ b/internal/suites/example/compose/authelia/resources/run-backend-dev.sh @@ -4,6 +4,6 @@ set -e while true; do - dlv --listen 0.0.0.0:2345 --headless=true --output=./authelia --continue --accept-multiclient debug cmd/authelia/*.go -- --config /config/configuration.yml + CGO_ENABLED=0 dlv --listen 0.0.0.0:2345 --headless=true --output=./authelia --continue --accept-multiclient debug cmd/authelia/*.go -- --config /config/configuration.yml sleep 10 -done \ No newline at end of file +done