Skip to content

Commit

Permalink
Simplify tags argument construction
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Jul 27, 2018
1 parent 0e75177 commit aa729c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/private/context.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aa729c2

Please sign in to comment.