Skip to content

Commit

Permalink
Revert sed changes in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
TheM1984 committed Oct 14, 2024
1 parent ac570d2 commit 8ecd551
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,17 @@ dist: clean dist-check build dist-create
update-go:
$(GO) get go@latest
# Remove patch level of GO version
@sed -i "" -E 's/(go [0-9]+\.[0-9]+)\.[0-9]+/\1/' go.mod
@sed -i.bak -E 's/(go [0-9]+\.[0-9]+)\.[0-9]+/\1/' go.mod
@rm -f go.mod.bak

.PHONY: update-dependencies
update-dependencies:
$(GO) get -t -u $(PACKAGES)
$(GO) mod tidy

# Adding lines to changelog
@sed -i "" -e 's/\(## \[$(VERSION)\]\)/$(CHANGELOG_LINES)\1/' $(CHANGELOG)
@sed -i.bak -e 's/\(## \[$(VERSION)\]\)/$(CHANGELOG_LINES)\1/' $(CHANGELOG)
@rm -f $(CHANGELOG).bak

.PHONY: update-with-go
update-with-go: clean update-go update-dependencies test
Expand Down

0 comments on commit 8ecd551

Please sign in to comment.