From aeda0629745625d2bd230d0962356985443d4634 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 15 Jan 2023 02:30:28 +0100 Subject: [PATCH] github: use go.work for replacement --- .github/workflows/go.yml | 8 ++++---- .gitignore | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c697d44..991ecd5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,8 +18,8 @@ jobs: - name: Replace dependency run: | - go mod edit -replace github.com/spf13/pflag=github.com/rsteube/carapace-pflag@v0.0.4 - go mod tidy + go work init . + go work edit -replace github.com/spf13/pflag=github.com/rsteube/carapace-pflag@v0.0.4 - name: Build run: go build -v ./... @@ -63,8 +63,8 @@ jobs: - name: Replace dependency run: | - go mod edit -replace github.com/spf13/pflag=github.com/rsteube/carapace-pflag@v0.0.4 - go mod tidy + go work init . + go work edit -replace github.com/spf13/pflag=github.com/rsteube/carapace-pflag@v0.0.4 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.gitignore b/.gitignore index 5150b50..6457f77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -profile.cov cmd/carapace-spec/carapace-spec dist docs/book +go.work +go.work.sum +profile.cov