github.phpd.cn/thought-machine/please@v12.2.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(['*.go'], exclude = [
    14          '*_test.go',
    15          'version.go',
    16      ]) + [
    17          ':version',
    18      ],
    19      deps = [
    20          '//src/cli',
    21          '//src/fs',
    22          '//third_party/go:gcfg',
    23          '//third_party/go:go-flags',
    24          '//third_party/go:godirwalk',
    25          '//third_party/go:logging',
    26          '//third_party/go:queue',
    27          '//third_party/go:semver',
    28      ],
    29      visibility = ['PUBLIC'],
    30  )
    31  
    32  go_test(
    33      name = 'config_test',
    34      srcs = ['config_test.go'],
    35      data = glob(['test_data/*.plzconfig*']),
    36      deps = [
    37          ':core',
    38          '//src/cli',
    39          '//third_party/go:testify',
    40      ],
    41  )
    42  
    43  go_test(
    44      name = 'label_parse_test',
    45      srcs = ['label_parse_test.go'],
    46      deps = [
    47          ':core',
    48      ],
    49  )
    50  
    51  go_test(
    52      name = 'graph_test',
    53      srcs = ['graph_test.go'],
    54      deps = [
    55          ':core',
    56          '//third_party/go:testify',
    57      ],
    58  )
    59  
    60  go_test(
    61      name = 'state_test',
    62      srcs = ['state_test.go'],
    63      deps = [
    64          ':core',
    65          '//third_party/go:testify',
    66      ],
    67  )
    68  
    69  go_test(
    70      name = 'build_target_test',
    71      srcs = ['build_target_test.go'],
    72      deps = [
    73          ':core',
    74          '//third_party/go:testify',
    75      ],
    76  )
    77  
    78  go_test(
    79      name = 'package_test',
    80      srcs = ['package_test.go'],
    81      data = ['test_data'],
    82      deps = [
    83          ':core',
    84          '//third_party/go:testify',
    85      ],
    86  )
    87  
    88  go_test(
    89      name = 'build_env_test',
    90      srcs = ['build_env_test.go'],
    91      deps = [
    92          ':core',
    93          '//third_party/go:testify',
    94      ],
    95  )
    96  
    97  go_test(
    98      name = 'utils_test',
    99      srcs = ['utils_test.go'],
   100      deps = [
   101          ':core',
   102          '//src/cli',
   103          '//third_party/go:testify',
   104      ],
   105  )
   106  
   107  go_test(
   108      name = 'lock_test',
   109      srcs = ['lock_test.go'],
   110      deps = [
   111          ':core',
   112          '//third_party/go:testify',
   113      ],
   114  )
   115  
   116  go_test(
   117      name = 'build_label_test',
   118      srcs = ['build_label_test.go'],
   119      deps = [
   120          ':core',
   121          '//third_party/go:testify',
   122      ],
   123  )
   124  
   125  go_test(
   126      name = 'test_results_test',
   127      srcs = ['test_results_test.go'],
   128      deps = [
   129          ':core',
   130          '//third_party/go:testify',
   131      ],
   132  )
   133  
   134  go_test(
   135      name = 'build_input_test',
   136      srcs = ['build_input_test.go'],
   137      deps = [
   138          ':core',
   139          '//third_party/go:testify',
   140      ],
   141  )
   142  
   143  go_test(
   144      name = 'progress_test',
   145      srcs = ['progress_test.go'],
   146      deps = [
   147          ':core',
   148          '//third_party/go:testify',
   149      ],
   150  )
   151  
   152  go_test(
   153      name = 'subrepo_test',
   154      srcs = ['subrepo_test.go'],
   155      deps = [
   156          ':core',
   157          '//third_party/go:testify',
   158      ],
   159  )