Skip to content

Commit

Permalink
Merge pull request #123 from rsteube/work-replace
Browse files Browse the repository at this point in the history
github: use go.work for replacement
  • Loading branch information
rsteube authored Jan 15, 2023
2 parents 3a87c5a + aeda062 commit e6191c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:

- name: Replace dependency
run: |
go mod edit -replace github.com/spf13/pflag=github.com/rsteube/[email protected]
go mod tidy
go work init .
go work edit -replace github.com/spf13/pflag=github.com/rsteube/[email protected]
- name: Build
run: go build -v ./...
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:

- name: Replace dependency
run: |
go mod edit -replace github.com/spf13/pflag=github.com/rsteube/[email protected]
go mod tidy
go work init .
go work edit -replace github.com/spf13/pflag=github.com/rsteube/[email protected]
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
profile.cov
cmd/carapace-spec/carapace-spec
dist
docs/book
go.work
go.work.sum
profile.cov

0 comments on commit e6191c9

Please sign in to comment.