Skip to content

Commit fd2ff14

Browse files
author
Ilya Polyakovskiy
committed
Add "all_files" filegroup contains all rules_haskell sources
1 parent ea0e70a commit fd2ff14

File tree

132 files changed

+1060
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1060
-0
lines changed

BUILD.bazel

+19
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ buildifier_exclude_patterns = [
1515
"./vendor/**",
1616
]
1717

18+
filegroup(
19+
name = "all_files",
20+
testonly = True,
21+
srcs = [
22+
"BUILD.bazel",
23+
"WORKSPACE",
24+
"constants.bzl",
25+
"//debug/linking_utils:all_files",
26+
"//docs:all_files",
27+
"//haskell:all_files",
28+
"//nixpkgs:all_files",
29+
"//protobuf:all_files",
30+
"//rule_info:all_files",
31+
"//tests:all_files",
32+
"//tools:all_files",
33+
],
34+
visibility = ["//visibility:public"],
35+
)
36+
1837
# Run this to check for errors in BUILD files.
1938
buildifier(
2039
name = "buildifier",

debug/linking_utils/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ if res != {}:
5050
"requires_nix",
5151
],
5252
)
53+
54+
filegroup(
55+
name = "all_files",
56+
testonly = True,
57+
srcs = glob(["**"]),
58+
visibility = ["//visibility:public"],
59+
)

docs/BUILD.bazel

+9
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,12 @@ genrule(
238238
"@zip//:bin",
239239
],
240240
)
241+
242+
filegroup(
243+
name = "all_files",
244+
testonly = True,
245+
srcs = glob(["**"]) + [
246+
"//docs/pandoc:all_files",
247+
],
248+
visibility = ["//visibility:public"],
249+
)

docs/pandoc/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ toolchain(
4141
toolchain = "@macos_pandoc//:pandoc_toolchain",
4242
toolchain_type = ":toolchain_type",
4343
)
44+
45+
filegroup(
46+
name = "all_files",
47+
testonly = True,
48+
srcs = glob(["**"]),
49+
visibility = ["//visibility:public"],
50+
)

haskell/BUILD.bazel

+11
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,14 @@ config_setting(
168168
haskell_toolchain_info(
169169
name = "toolchain_info",
170170
)
171+
172+
filegroup(
173+
name = "all_files",
174+
testonly = True,
175+
srcs = glob(["**"]) + [
176+
"//haskell/c2hs:all_files",
177+
"//haskell/experimental:all_files",
178+
"//haskell/platforms:all_files",
179+
],
180+
visibility = ["//visibility:public"],
181+
)

haskell/c2hs/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ toolchain_type(
22
name = "toolchain",
33
visibility = ["//visibility:public"],
44
)
5+
6+
filegroup(
7+
name = "all_files",
8+
testonly = True,
9+
srcs = glob(["**"]),
10+
visibility = ["//visibility:public"],
11+
)

haskell/experimental/BUILD.bazel

+9
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ exports_files([
1212
"defs.bzl",
1313
"transitions.bzl",
1414
])
15+
16+
filegroup(
17+
name = "all_files",
18+
testonly = True,
19+
srcs = glob(["**"]) + [
20+
"//haskell/experimental/private:all_files",
21+
],
22+
visibility = ["//visibility:public"],
23+
)
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
filegroup(
2+
name = "all_files",
3+
testonly = True,
4+
srcs = glob(["**"]),
5+
visibility = ["//visibility:public"],
6+
)

haskell/platforms/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ alias(
2929
deprecation = "Use @io_tweag_rules_nixpkgs//nixpkgs/platforms:host instead.",
3030
visibility = ["//visibility:public"],
3131
)
32+
33+
filegroup(
34+
name = "all_files",
35+
testonly = True,
36+
srcs = glob(["**"]),
37+
visibility = ["//visibility:public"],
38+
)

nixpkgs/BUILD.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
filegroup(
2+
name = "all_files",
3+
testonly = True,
4+
srcs = glob(["**"]),
5+
visibility = ["//visibility:public"],
6+
)

protobuf/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ toolchain_type(
22
name = "toolchain",
33
visibility = ["//visibility:public"],
44
)
5+
6+
filegroup(
7+
name = "all_files",
8+
testonly = True,
9+
srcs = glob(["**"]),
10+
visibility = ["//visibility:public"],
11+
)

rule_info/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ haskell_proto_library(
1414
visibility = ["//visibility:public"],
1515
deps = [":rule_info_proto"],
1616
)
17+
18+
filegroup(
19+
name = "all_files",
20+
testonly = True,
21+
srcs = glob(["**"]),
22+
visibility = ["//visibility:public"],
23+
)

tests/BUILD.bazel

+98
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,101 @@ haskell_repl(
416416
"//tests/binary-with-lib",
417417
],
418418
)
419+
420+
filegroup(
421+
name = "all_files",
422+
testonly = True,
423+
srcs = glob(["**"]) + [
424+
"//tests/binary-custom-main:all_files",
425+
"//tests/binary-dynamic:all_files",
426+
"//tests/binary-exe-path:all_files",
427+
"//tests/binary-indirect-cbits:all_files",
428+
"//tests/binary-linkstatic-flag:all_files",
429+
"//tests/binary-simple:all_files",
430+
"//tests/binary-with-compiler-flags:all_files",
431+
"//tests/binary-with-data:all_files",
432+
"//tests/binary-with-import:all_files",
433+
"//tests/binary-with-indirect-sysdeps:all_files",
434+
"//tests/binary-with-lib:all_files",
435+
"//tests/binary-with-lib-dynamic:all_files",
436+
"//tests/binary-with-link-flags:all_files",
437+
"//tests/binary-with-main:all_files",
438+
"//tests/binary-with-plugin:all_files",
439+
"//tests/binary-with-prebuilt:all_files",
440+
"//tests/binary-with-sysdeps:all_files",
441+
"//tests/binary-with-tool:all_files",
442+
"//tests/c2hs:all_files",
443+
"//tests/cabal-toolchain-flags:all_files",
444+
"//tests/cc_haskell_import:all_files",
445+
"//tests/c-compiles:all_files",
446+
"//tests/c-compiles-still:all_files",
447+
"//tests/cpp_macro_conflict:all_files",
448+
"//tests/data:all_files",
449+
"//tests/encoding:all_files",
450+
"//tests/external-haskell-repository:all_files",
451+
"//tests/extra-source-files:all_files",
452+
"//tests/generated-modules:all_files",
453+
"//tests/ghc:all_files",
454+
"//tests/ghc-check:all_files",
455+
"//tests/ghcide:all_files",
456+
"//tests/hackage:all_files",
457+
"//tests/haddock:all_files",
458+
"//tests/haddock_protobuf:all_files",
459+
"//tests/haddock-with-plugin:all_files",
460+
"//tests/haskell_cabal_binary:all_files",
461+
"//tests/haskell_cabal_doctest:all_files",
462+
"//tests/haskell_cabal_library:all_files",
463+
"//tests/haskell_cabal_library_depends_on_haskell_library:all_files",
464+
"//tests/haskell_cabal_library_sublibrary_name:all_files",
465+
"//tests/haskell_cabal_package:all_files",
466+
"//tests/haskell_doctest:all_files",
467+
"//tests/haskell_import:all_files",
468+
"//tests/haskell_module:all_files",
469+
"//tests/haskell_proto_library:all_files",
470+
"//tests/haskell_proto_simple:all_files",
471+
"//tests/haskell_test:all_files",
472+
"//tests/haskell_toolchain_library:all_files",
473+
"//tests/hidden-modules:all_files",
474+
"//tests/hie-bios:all_files",
475+
"//tests/hs-boot:all_files",
476+
"//tests/hsc:all_files",
477+
"//tests/indirect-link:all_files",
478+
"//tests/java_classpath:all_files",
479+
"//tests/lhs:all_files",
480+
"//tests/library-deps:all_files",
481+
"//tests/library-empty:all_files",
482+
"//tests/library-exports:all_files",
483+
"//tests/library-linkstatic-flag:all_files",
484+
"//tests/library-with-cbits:all_files",
485+
"//tests/library-with-includes:all_files",
486+
"//tests/library-with-static-cc-dep:all_files",
487+
"//tests/library-with-sysdeps:all_files",
488+
"//tests/library-with-sysincludes:all_files",
489+
"//tests/multi_repl:all_files",
490+
"//tests/package_configuration:all_files",
491+
"//tests/package-id-clash:all_files",
492+
"//tests/package-id-clash-binary:all_files",
493+
"//tests/package-name:all_files",
494+
"//tests/package-reexport:all_files",
495+
"//tests/plugin-install-order:all_files",
496+
"//tests/repl-flags:all_files",
497+
"//tests/repl-make-variables:all_files",
498+
"//tests/repl-multiple-definition:all_files",
499+
"//tests/repl-name-conflicts:all_files",
500+
"//tests/repl-targets:all_files",
501+
"//tests/runfiles:all_files",
502+
"//tests/sandwich:all_files",
503+
"//tests/shellcheck:all_files",
504+
"//tests/solib_dir:all_files",
505+
"//tests/stackage_zlib_runpath:all_files",
506+
"//tests/stack-snapshot-deps:all_files",
507+
"//tests/target-name:all_files",
508+
"//tests/template-haskell-with-cbits:all_files",
509+
"//tests/textual-hdrs:all_files",
510+
"//tests/two-libs:all_files",
511+
"//tests/two-same-file:all_files",
512+
"//tests/unit-tests:all_files",
513+
"//tests/version-macros:all_files",
514+
],
515+
visibility = ["//visibility:public"],
516+
)

tests/binary-custom-main/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ haskell_test(
1515
visibility = ["//visibility:public"],
1616
deps = ["//tests/hackage:base"],
1717
)
18+
19+
filegroup(
20+
name = "all_files",
21+
testonly = True,
22+
srcs = glob(["**"]),
23+
visibility = ["//visibility:public"],
24+
)

tests/binary-dynamic/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ haskell_test(
1212
visibility = ["//visibility:public"],
1313
deps = ["//tests/hackage:base"],
1414
)
15+
16+
filegroup(
17+
name = "all_files",
18+
testonly = True,
19+
srcs = glob(["**"]),
20+
visibility = ["//visibility:public"],
21+
)

tests/binary-exe-path/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ haskell_test(
1111
visibility = ["//visibility:public"],
1212
deps = ["//tests/hackage:base"],
1313
)
14+
15+
filegroup(
16+
name = "all_files",
17+
testonly = True,
18+
srcs = glob(["**"]),
19+
visibility = ["//visibility:public"],
20+
)

tests/binary-indirect-cbits/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ haskell_binary(
3333
"//tests/library-with-cbits:library-with-cbits-static",
3434
],
3535
)
36+
37+
filegroup(
38+
name = "all_files",
39+
testonly = True,
40+
srcs = glob(["**"]),
41+
visibility = ["//visibility:public"],
42+
)

tests/binary-linkstatic-flag/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,10 @@ test_suite(
135135
],
136136
visibility = ["//visibility:public"],
137137
)
138+
139+
filegroup(
140+
name = "all_files",
141+
testonly = True,
142+
srcs = glob(["**"]),
143+
visibility = ["//visibility:public"],
144+
)

tests/binary-simple/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ haskell_test(
1313
visibility = ["//visibility:public"],
1414
deps = ["//tests/hackage:base"],
1515
)
16+
17+
filegroup(
18+
name = "all_files",
19+
testonly = True,
20+
srcs = glob(["**"]),
21+
visibility = ["//visibility:public"],
22+
)

tests/binary-with-compiler-flags/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ haskell_test(
1616
],
1717
deps = ["//tests/hackage:base"],
1818
)
19+
20+
filegroup(
21+
name = "all_files",
22+
testonly = True,
23+
srcs = glob(["**"]),
24+
visibility = ["//visibility:public"],
25+
)

tests/binary-with-data/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ haskell_test(
3030
"//tools/runfiles",
3131
],
3232
)
33+
34+
filegroup(
35+
name = "all_files",
36+
testonly = True,
37+
srcs = glob(["**"]),
38+
visibility = ["//visibility:public"],
39+
)

tests/binary-with-import/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ haskell_test(
2424
"//tests/hackage:base",
2525
],
2626
)
27+
28+
filegroup(
29+
name = "all_files",
30+
testonly = True,
31+
srcs = glob(["**"]),
32+
visibility = ["//visibility:public"],
33+
)

tests/binary-with-indirect-sysdeps/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ haskell_test(
2323
"//tests/hackage:base",
2424
],
2525
)
26+
27+
filegroup(
28+
name = "all_files",
29+
testonly = True,
30+
srcs = glob(["**"]),
31+
visibility = ["//visibility:public"],
32+
)

tests/binary-with-lib-dynamic/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ dynamic_libraries_in_runfiles_test(
3636
],
3737
target_under_test = ":binary-with-lib-dynamic",
3838
)
39+
40+
filegroup(
41+
name = "all_files",
42+
testonly = True,
43+
srcs = glob(["**"]),
44+
visibility = ["//visibility:public"],
45+
)

tests/binary-with-lib/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ haskell_test(
2525
"//tests/hackage:template-haskell",
2626
],
2727
)
28+
29+
filegroup(
30+
name = "all_files",
31+
testonly = True,
32+
srcs = glob(["**"]),
33+
visibility = ["//visibility:public"],
34+
)

tests/binary-with-link-flags/BUILD.bazel

+7
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ haskell_test(
1515
visibility = ["//visibility:public"],
1616
deps = ["//tests/hackage:base"],
1717
)
18+
19+
filegroup(
20+
name = "all_files",
21+
testonly = True,
22+
srcs = glob(["**"]),
23+
visibility = ["//visibility:public"],
24+
)

0 commit comments

Comments
 (0)