Skip to content

Commit

Permalink
Aligns Makefile fmt target with buildkite pipeline
Browse files Browse the repository at this point in the history
I discovered that the arguments used in our buildkit pipeline was not
the same that was being used when we ran make fmt on the commandline.
This commit makes the Makefile target match what we use in buildkite.
  • Loading branch information
jasonheath committed Oct 9, 2024
1 parent e89b85c commit ac4fff7
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 @@ -205,7 +205,7 @@ $(foreach component,$(ALL),$(eval $(call CLEAN,$(component))))
RUSTFMT_TOOLCHAIN := $(shell cat RUSTFMT_VERSION)
define FMT
fmt-$1: image ## formats the $1 component
$(run) sh -c 'cd components/$1 && cargo +$(RUSTFMT_TOOLCHAIN) fmt'
$(run) sh -c 'cd components/$1 && cargo +$(RUSTFMT_TOOLCHAIN) fmt --all -- --check'
.PHONY: fmt-$1

endef
Expand Down

0 comments on commit ac4fff7

Please sign in to comment.