From 13a82a140c02ca56e22720afdc3c9115e4a0017e Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Wed, 7 May 2025 15:36:22 +0200 Subject: [PATCH 1/2] Remove file permissions --- .github/workflows/checks.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 570e970..1166994 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -38,6 +38,10 @@ jobs: - name: Run playground run: go run main.go cook ${{ matrix.flags }} --output /tmp/playground --timeout 4m --watchdog + # Make sure there are no permission issues on the playground directory + - name: Remove playground directory + run: rm -rf /tmp/playground + - name: Copy playground logs if: ${{ failure() }} run: ./scripts/ci-copy-playground-logs.sh /tmp/playground /tmp/playground-logs From 82f7539b8c44000e000838db34cfb04180d6fe18 Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Fri, 9 May 2025 11:52:15 +0200 Subject: [PATCH 2/2] Try fix --- internal/local_runner.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/local_runner.go b/internal/local_runner.go index 1a0ac79..effe7d9 100644 --- a/internal/local_runner.go +++ b/internal/local_runner.go @@ -643,6 +643,12 @@ func (d *LocalRunner) toDockerComposeService(s *Service) (map[string]interface{} "labels": labels, } + if runtime.GOOS == "linux" { + uid := os.Getuid() + gid := os.Getgid() + service["user"] = fmt.Sprintf("%d:%d", uid, gid) + } + if len(envs) > 0 { service["environment"] = envs }