From aa729c246ac482365086f41b4126053cf0c12d24 Mon Sep 17 00:00:00 2001 From: Mikhail Mazurskiy Date: Fri, 27 Jul 2018 13:51:55 +0500 Subject: [PATCH] Simplify tags argument construction --- go/private/context.bzl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go/private/context.bzl b/go/private/context.bzl index 61aa90fd5f..9da9f4da7f 100644 --- a/go/private/context.bzl +++ b/go/private/context.bzl @@ -80,9 +80,7 @@ def _declare_directory(go, path = "", ext = "", name = ""): def _new_args(go): args = go.actions.args() args.add_all(["-sdk", go.sdk_root.dirname]) - if go.tags: - args.add("-tags") - args.add_joined(go.tags, join_with = ",") + args.add_joined("-tags", go.tags, join_with = ",") return args def _new_library(go, name = None, importpath = None, resolver = None, importable = True, testfilter = None, **kwargs):