Repository URL to install this package:
|
Version:
1.26.0.dev0+gite506aa5f ▾
|
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.contrib.go.targets.go_local_source import GoLocalSource
class GoBinary(GoLocalSource):
"""A local Go main package."""
default_sources_globs = "*"
default_sources_exclude_globs = ("BUILD", "BUILD.*")
@classmethod
def alias(cls):
return "go_binary"
def __init__(self, build_flags=None, **kwargs):
"""
:param string build_flags: Build flags to pass to Go compiler.
"""
super().__init__(**kwargs)
self.build_flags = build_flags