From ac3524f03f526017d671eae235af631a5f17cbc9 Mon Sep 17 00:00:00 2001 From: Joe Richey Date: Tue, 29 Aug 2017 10:23:54 -0700 Subject: Added +build linux,cgo flags --- Makefile | 2 +- cmd/fscrypt/fscrypt.go | 5 ++++- pam_fscrypt/pam_fscrypt.go | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 328f19b..1ec009e 100644 --- a/Makefile +++ b/Makefile @@ -142,7 +142,7 @@ format-check: # Run lint rules (skipping generated files) .PHONY: lint lint: - @go vet $(GO_PKGS) + @go tool vet -buildtags=false . @golint $(GO_PKGS) | grep -v "pb.go" | ./input_fail.py @megacheck -unused.exported $(GO_PKGS) diff --git a/cmd/fscrypt/fscrypt.go b/cmd/fscrypt/fscrypt.go index fe1e0c9..93df341 100644 --- a/cmd/fscrypt/fscrypt.go +++ b/cmd/fscrypt/fscrypt.go @@ -19,8 +19,11 @@ */ /* -fscrypt is a comprehensive command line tool for managing filesystem encryption. +fscrypt is a command line tool for managing linux filesystem encryption. */ + +// +build linux,cgo + package main import ( diff --git a/pam_fscrypt/pam_fscrypt.go b/pam_fscrypt/pam_fscrypt.go index 21bc779..5beb311 100644 --- a/pam_fscrypt/pam_fscrypt.go +++ b/pam_fscrypt/pam_fscrypt.go @@ -17,6 +17,8 @@ * the License. */ +// +build linux,cgo + package main /* -- cgit v1.2.3