You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ install-addlicense: FORCE
52
52
@if !hash addlicense 2>/dev/null;thenprintf"\e[1;36m>> Installing addlicense (this may take a while)...\e[0m\n"; go install github.com/google/addlicense@latest;fi
53
53
54
54
install-reuse: FORCE
55
-
@if !hash reuse 2>/dev/null;thenif!hashpip32>/dev/null;thenprintf"\e[1;31m>> Cannot install reuse because no pip3 was found. Either install it using your package manager or install pip3\e[0m\n";elseprintf"\e[1;36m>> Installing reuse...\e[0m\n";pip3 install --user reuse;fi;fi
55
+
@if !hash reuse 2>/dev/null;thenif!hashpipx2>/dev/null;thenprintf"\e[1;31m>> You are required to manually intervene to install reuse as go-makefile-maker cannot automatically resolve installing reuse on all setups.\e[0m\n";printf"\e[1;31m>> The preferred way for go-makefile-maker to install python tools after nix-shell is pipx which could not be found. Either install pipx using your package manager or install reuse using your package manager if at least version 6 is available.\e[0m\n";printf"\e[1;31m>> As your Python was likely installed by your package manager, just doing pip install --user sadly does no longer work as pip issues a warning about breaking your system. Generally running --break-system-packages with --user is safe to do but you should only run this command if you can resolve issues with it yourself: pip3 install --user --break-system-packages reuse\e[0m\n";elseprintf"\e[1;36m>> Installing reuse...\e[0m\n";pipx install reuse;fi;fi
56
56
57
57
prepare-static-check: FORCE install-golangci-lint install-modernize install-shellcheck install-go-licence-detector install-addlicense install-reuse
0 commit comments