Invert tag for inclusion of CV functionality

Prior to this change, CV was included by default, however, this
doesn't seem appropriate given that this functionality is rarely
used. For that reason, the meaning of the nocv tag has been
inverted i.e. it is now called withcv, and it the tag must be
included to build CV components.
This commit is contained in:
Saxon Nelson-Milton 2022-11-12 15:28:44 +10:30
parent fe2f091272
commit 67e03d0f5c
16 changed files with 30 additions and 25 deletions

View File

@ -23,9 +23,9 @@ jobs:
- run: go get -d -t -v ./...
- run: go build -v -tags nocv ./...
- run: go build -v ./...
- run: go test -v -tags nocv ./...
- run: go test -v ./...
- save_cache:
key: v1-pkg-cache

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build nocv
// +build nocv
//go:build !withcv
// +build !withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
// What it does:
//

View File

@ -1,4 +1,5 @@
// +build debug,!nocv
//go:build debug && withcv
// +build debug,withcv
/*
DESCRIPTION

View File

@ -1,4 +1,5 @@
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,4 +1,5 @@
// +build nocv
//go:build !withcv
// +build !withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,4 +1,5 @@
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,4 +1,5 @@
// +build !debug,!nocv
//go:build debug && withcv
// +build debug,withcv
/*
DESCRIPTION

View File

@ -25,7 +25,7 @@ endif
rebuild:
chmod +x run.sh
cd ../cmd/$(BIN_NAME); go build -tags nocv
cd ../cmd/$(BIN_NAME); go build -tags withcv
install: as_root make_dirs soft_copy_files rebuild syncreboot
@echo "Install complete"

View File

@ -13,7 +13,7 @@ Sending is handled by "senders", defined in the senders.go file.
Building the revid package requires gocv.io/x/gocv to be installed. On platforms
where this is not available, a reduced functionality package can be built using
the `nocv` build tag.
the `withcv` build tag.
# Contributing

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION

View File

@ -1,5 +1,5 @@
//go:build !nocv
// +build !nocv
//go:build withcv
// +build withcv
/*
DESCRIPTION