소스 검색

Fix Lefthook hooks on macOS

DarthSim 1 년 전
부모
커밋
b0aa618482
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .lefthook/pre-commit/lint
  2. 1 0
      .lefthook/pre-push/test

+ 1 - 0
.lefthook/pre-commit/lint

@@ -7,6 +7,7 @@ fi
 
 if [ -x "$(which brew)" ]; then
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
+  export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
 fi
 
 export CGO_LDFLAGS_ALLOW="-s|-w"

+ 1 - 0
.lefthook/pre-push/test

@@ -2,6 +2,7 @@
 
 if [ -x "$(which brew)" ]; then
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
+  export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
 fi
 
 export CGO_LDFLAGS_ALLOW="-s|-w"