Skip to content

Commit

Permalink
Switch --incompatible_disable_deprecated_attr_params
Browse files Browse the repository at this point in the history
  • Loading branch information
guibou committed Jun 26, 2019
1 parent 13c1b55 commit e60df39
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ test:windows --experimental_enable_runfiles

# WIP: bazel 0.27 fixs
build\
--incompatible_disable_deprecated_attr_params=false\
--incompatible_require_ctx_in_configure_features=false\
--incompatible_depset_union=false
test\
--incompatible_disable_deprecated_attr_params=false\
--incompatible_require_ctx_in_configure_features=false\
--incompatible_depset_union=false

Expand Down
2 changes: 1 addition & 1 deletion haskell/haskell.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ haskell_import = rule(
"hdrs": attr.label_list(allow_files = True),
"includes": attr.string_list(),
"haddock_interfaces": attr.label_list(allow_files = True),
"haddock_html": attr.label(allow_files = True, single_file = True),
"haddock_html": attr.label(allow_single_file = True),
"_version_macros": attr.label(
executable = True,
cfg = "host",
Expand Down
2 changes: 1 addition & 1 deletion hazel/third_party/cabal2bazel/bzl/cabal_package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _hazel_symlink_impl(ctx):
hazel_symlink = rule(
implementation = _hazel_symlink_impl,
attrs = {
"src": attr.label(mandatory = True, allow_files = True, single_file = True),
"src": attr.label(mandatory = True, allow_single_file = True),
"out": attr.string(mandatory = True),
},
outputs = {"out": "%{out}"},
Expand Down
5 changes: 2 additions & 3 deletions hazel/third_party/cabal2bazel/bzl/cabal_paths.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ _path_module_gen = rule(
attrs = {
"data_dir": attr.string(),
"module": attr.string(),
"version": attr.int_list(mandatory = True, non_empty = True),
"version": attr.int_list(mandatory = True, allow_empty = False),
"_template": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
default = Label(
"@ai_formation_hazel//:paths-template.hs",
),
Expand Down

0 comments on commit e60df39

Please sign in to comment.