Skip to content

Commit

Permalink
find cargo before running as sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Jul 2, 2024
1 parent 58be529 commit 6fa4a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ vm_image = https://cloud-images.ubuntu.com/focal/current/focal-server-cloud
ifeq ($(uid), 0)
root_cargo = cargo
else
root_cargo = sudo -E cargo
root_cargo = sudo -E `which cargo`
endif

# Configuration Options
Expand Down Expand Up @@ -197,7 +197,7 @@ $(1): musl $(GEN_RS) $(GEN_TS) $(1)-lint $(1)-debug ## Lint and install $(1) (fo

.PHONY: $(1)-lint
$(1)-lint: musl $(GEN_RS) $(GEN_TS)
$$(cargo) clippy $(2) -p $(1) --all-features -- -D clippy::all -D warnings
$(cargo) clippy $(2) -p $(1) --all-features -- -D clippy::all -D warnings

.PHONY: $(1)-test
$(1)-test: musl $(GEN_RS) $(GEN_TS) auraed-debug
Expand Down

0 comments on commit 6fa4a92

Please sign in to comment.