From cf93b11a74302d95507764127a6e95aec1e0e980 Mon Sep 17 00:00:00 2001 From: Yves Brissaud Date: Thu, 5 Jan 2023 09:41:57 +0100 Subject: [PATCH] fix: allow to run standalone without to repeat dague Allow to run ./dist/docker-dague for instance Previously you had to run ./dist/docker-dague dague ... Signed-off-by: Yves Brissaud --- .github/workflows/main.yml | 8 ++++---- cmd/docker-dague/main.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b1b384..3e0290f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: with: name: dague-bin - name: Check docs - run: chmod +x ./docker-dague; ./docker-dague dague go:doc --check + run: chmod +x ./docker-dague; ./docker-dague go:doc --check lint: needs: [build] @@ -48,7 +48,7 @@ jobs: with: name: dague-bin - name: Lint - run: chmod +x ./docker-dague; ./docker-dague dague go:lint + run: chmod +x ./docker-dague; ./docker-dague go:lint format: needs: [build] @@ -60,7 +60,7 @@ jobs: with: name: dague-bin - name: gofumpt - run: chmod +x ./docker-dague; ./docker-dague dague go:fmt:print + run: chmod +x ./docker-dague; ./docker-dague go:fmt:print build-cross: needs: [build] @@ -84,7 +84,7 @@ jobs: - name: Tag run: git tag v${{ steps.new_version.outputs.new_version }} - name: Cross build binaries - run: chmod +x ./docker-dague; ./docker-dague dague go:build cross + run: chmod +x ./docker-dague; ./docker-dague go:build cross - name: Upload artifacts if: github.event_name == 'push' uses: actions/upload-artifact@v3 diff --git a/cmd/docker-dague/main.go b/cmd/docker-dague/main.go index d1b6878..37174af 100644 --- a/cmd/docker-dague/main.go +++ b/cmd/docker-dague/main.go @@ -228,7 +228,7 @@ func pluginMain() { func main() { if plugin.RunningStandalone() { - os.Args = append([]string{"docker"}, os.Args[1:]...) + os.Args = append([]string{"docker", "dague"}, os.Args[1:]...) } pluginMain() }