github.com/tiagovtristao/plz@v13.4.0+incompatible/src/core/BUILD (about)

     1  genrule(
     2      name = "version",
     3      srcs = {
     4          "go": ["version.go"],
     5          "version": ["//:version"],
     6      },
     7      outs = ["versioned.go"],
     8      cmd = "sed \"s/1.0.9999/`cat $SRCS_VERSION`/\" $SRCS_GO > $OUT",
     9  )
    10  
    11  go_library(
    12      name = "core",
    13      srcs = glob(
    14          ["*.go"],
    15          exclude = [
    16              "*_test.go",
    17              "version.go",
    18          ],
    19      ) + [
    20          ":version",
    21      ],
    22      visibility = ["PUBLIC"],
    23      deps = [
    24          "//src/cli",
    25          "//src/fs",
    26          "//third_party/go:gcfg",
    27          "//third_party/go:go-flags",
    28          "//third_party/go:godirwalk",
    29          "//third_party/go:logging",
    30          "//third_party/go:queue",
    31          "//third_party/go:semver",
    32          "//third_party/go:shlex",
    33          "//third_party/go:xattr",
    34      ],
    35  )
    36  
    37  go_test(
    38      name = "config_test",
    39      srcs = ["config_test.go"],
    40      data = glob(["test_data/*.plzconfig*"]),
    41      deps = [
    42          ":core",
    43          "//src/cli",
    44          "//third_party/go:go-flags",
    45          "//third_party/go:testify",
    46      ],
    47  )
    48  
    49  go_test(
    50      name = "label_parse_test",
    51      srcs = ["label_parse_test.go"],
    52      deps = [
    53          ":core",
    54          "//third_party/go:testify",
    55      ],
    56  )
    57  
    58  go_test(
    59      name = "graph_test",
    60      srcs = ["graph_test.go"],
    61      deps = [
    62          ":core",
    63          "//third_party/go:testify",
    64      ],
    65  )
    66  
    67  go_test(
    68      name = "state_test",
    69      srcs = ["state_test.go"],
    70      deps = [
    71          ":core",
    72          "//third_party/go:testify",
    73      ],
    74  )
    75  
    76  go_test(
    77      name = "build_target_test",
    78      srcs = ["build_target_test.go"],
    79      deps = [
    80          ":core",
    81          "//third_party/go:testify",
    82      ],
    83  )
    84  
    85  go_test(
    86      name = "package_test",
    87      srcs = ["package_test.go"],
    88      data = ["test_data"],
    89      deps = [
    90          ":core",
    91          "//third_party/go:testify",
    92      ],
    93  )
    94  
    95  go_test(
    96      name = "build_env_test",
    97      srcs = ["build_env_test.go"],
    98      deps = [
    99          ":core",
   100          "//third_party/go:testify",
   101      ],
   102  )
   103  
   104  go_test(
   105      name = "utils_test",
   106      srcs = ["utils_test.go"],
   107      deps = [
   108          ":core",
   109          "//src/cli",
   110          "//third_party/go:testify",
   111      ],
   112  )
   113  
   114  go_test(
   115      name = "lock_test",
   116      srcs = ["lock_test.go"],
   117      deps = [
   118          ":core",
   119          "//third_party/go:testify",
   120      ],
   121  )
   122  
   123  go_test(
   124      name = "build_label_test",
   125      srcs = ["build_label_test.go"],
   126      deps = [
   127          ":core",
   128          "//third_party/go:testify",
   129      ],
   130  )
   131  
   132  go_test(
   133      name = "test_results_test",
   134      srcs = ["test_results_test.go"],
   135      deps = [
   136          ":core",
   137          "//third_party/go:testify",
   138      ],
   139  )
   140  
   141  go_test(
   142      name = "build_input_test",
   143      srcs = ["build_input_test.go"],
   144      deps = [
   145          ":core",
   146          "//third_party/go:testify",
   147      ],
   148  )
   149  
   150  go_test(
   151      name = "progress_test",
   152      srcs = ["progress_test.go"],
   153      deps = [
   154          ":core",
   155          "//third_party/go:testify",
   156      ],
   157  )
   158  
   159  go_test(
   160      name = "subrepo_test",
   161      srcs = ["subrepo_test.go"],
   162      deps = [
   163          ":core",
   164          "//third_party/go:testify",
   165      ],
   166  )