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