Skip to content

Commit

Permalink
Replace import placeholder before running formatting (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Aug 18, 2023
1 parent 13f96a7 commit f333354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ update-version:

CURRENT_MAJOR_VERSION := $(shell cat VERSION | sed 's/\..*//')
codegen-format:
@find . -name '*.go' -exec perl -pi -e 's|github.com/stripe/stripe-go/\[MAJOR_VERSION\]|github.com/stripe/stripe-go/v$(CURRENT_MAJOR_VERSION)|' {} +
go fmt ./...
go install golang.org/x/tools/cmd/goimports@latest && goimports -w example/generated_examples_test.go
@find . -name '*.go' -exec perl -pi -e 's|github.com/stripe/stripe-go/\[MAJOR_VERSION\]|github.com/stripe/stripe-go/v$(CURRENT_MAJOR_VERSION)|' {} +

.PHONY: codegen-format update-version

0 comments on commit f333354

Please sign in to comment.