瀏覽代碼

Update build tags

Tulir Asokan 3 年之前
父節點
當前提交
1f6d316ff3
共有 3 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      crypto.go
  2. 1 0
      database/cryptostore.go
  3. 1 0
      no-crypto.go

+ 1 - 0
crypto.go

@@ -14,6 +14,7 @@
 // You should have received a copy of the GNU Affero General Public License
 // You should have received a copy of the GNU Affero General Public License
 // along with this program.  If not, see <https://www.gnu.org/licenses/>.
 // along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 
+//go:build cgo && !nocrypto
 // +build cgo,!nocrypto
 // +build cgo,!nocrypto
 
 
 package main
 package main

+ 1 - 0
database/cryptostore.go

@@ -14,6 +14,7 @@
 // You should have received a copy of the GNU Affero General Public License
 // You should have received a copy of the GNU Affero General Public License
 // along with this program.  If not, see <https://www.gnu.org/licenses/>.
 // along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 
+//go:build cgo && !nocrypto
 // +build cgo,!nocrypto
 // +build cgo,!nocrypto
 
 
 package database
 package database

+ 1 - 0
no-crypto.go

@@ -1,3 +1,4 @@
+//go:build !cgo || nocrypto
 // +build !cgo nocrypto
 // +build !cgo nocrypto
 
 
 package main
 package main