From 450a971df84031d06d57cf7d2d5e163b3be2a933 Mon Sep 17 00:00:00 2001 From: Matthew Edge Date: Wed, 18 Sep 2024 12:09:26 -0400 Subject: [PATCH] Fix docker compose CLI usage --- .github/workflows/test.yaml | 4 ++-- setter/setter.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 61656c2..b3d94b0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -36,11 +36,11 @@ jobs: run: go mod download - name: Start containers - run: docker-compose up -d --build + run: docker compose up -d --build - name: Test run: make test - name: Stop containers if: always() - run: docker-compose down + run: docker compose down diff --git a/setter/setter.go b/setter/setter.go index fee658f..0e446a7 100644 --- a/setter/setter.go +++ b/setter/setter.go @@ -58,6 +58,7 @@ func SetDefaultNew[T comparable](dest *T, defaultValues ...T) { for _, value := range defaultValues { if !IsZeroNew(value) { *dest = value + return } } }