From 68410e0a4c633afd5059a2614b13596c91602e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Mon, 6 Dec 2021 10:56:27 +0100 Subject: [PATCH] osbuild-auth-tests: add a build constraint also to certificates.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These tests can be run only in our CI environment, and not as pure unit tests launched by go test ./... Let's make sure that all files that belong to these tests are properly marked with build constraints. This should fix the following error in Coverity Scan runs: # github.com/osbuild/osbuild-composer/cmd/osbuild-auth-tests runtime.main_main·f: function main is undeclared in the main package Warning: Build command go build -o bin/ ./... exited with code 2. Please verify that the build completed successfully. See https://github.com/osbuild/osbuild-composer/runs/4427232580?check_suite_focus=true Signed-off-by: Ondřej Budai --- cmd/osbuild-auth-tests/certificates.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/osbuild-auth-tests/certificates.go b/cmd/osbuild-auth-tests/certificates.go index 120c094d4..57f82883d 100644 --- a/cmd/osbuild-auth-tests/certificates.go +++ b/cmd/osbuild-auth-tests/certificates.go @@ -1,3 +1,5 @@ +// +build integration + package main import (