Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing bazel 0.22 incompatible changes. #613

Merged
merged 1 commit into from Jan 23, 2019
Merged

Conversation

picnoir
Copy link
Contributor

@picnoir picnoir commented Jan 22, 2019

Fixing bazel imcompatible changes, more specifically:

  • incompatible_bzl_disallow_load_after_statement
  • incompatible_depset_is_not_iterable
  • incompatible_depset_union
  • incompatible_disable_objc_provider_resources
  • incompatible_disallow_conflicting_providers
  • incompatible_disallow_data_transition
  • incompatible_disallow_dict_plus
  • incompatible_disallow_filetype
  • incompatible_disallow_legacy_javainfo
  • incompatible_disallow_load_labels_to_cross_package_boundaries
  • incompatible_disallow_old_style_args_add
  • incompatible_disallow_slash_operator
  • incompatible_generate_javacommon_source_jar
  • incompatible_merge_genfiles_directory
  • incompatible_no_attr_license
  • incompatible_no_output_attr_default
  • incompatible_no_support_tools_in_action_inputs
  • incompatible_no_target_output_group
  • incompatible_no_transitive_loads
  • incompatible_package_name_is_a_function
  • incompatible_range_type
  • incompatible_remote_symlinks
  • incompatible_remove_native_git_repository
  • incompatible_remove_native_http_archive
  • incompatible_remove_native_maven_jar
  • incompatible_static_name_resolution
  • incompatible_strict_action_env

Note:

I added the --incompatible checks to the circle CI build to ensure we do not use these deprecated constructions anymore.

It might be annoying on the short term but it will save us lot of headaches on the long run.

Part of #489

@picnoir picnoir force-pushed the nin-bazel-22-clean branch 6 times, most recently from d17f1e9 to 7d864f1 Compare January 23, 2019 08:01
Copy link
Member

@mboes mboes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of the args.add_all()'s can be replaced with args.add(), since we were previously adding singletons.

Fixing bazel imcompatible changes, more specifically:

- incompatible_bzl_disallow_load_after_statement
- incompatible_depset_is_not_iterable
- incompatible_depset_union
- incompatible_disable_objc_provider_resources
- incompatible_disallow_conflicting_providers
- incompatible_disallow_data_transition
- incompatible_disallow_dict_plus
- incompatible_disallow_filetype
- incompatible_disallow_legacy_javainfo
- incompatible_disallow_load_labels_to_cross_package_boundaries
- incompatible_disallow_old_style_args_add
- incompatible_disallow_slash_operator
- incompatible_generate_javacommon_source_jar
- incompatible_merge_genfiles_directory
- incompatible_no_attr_license
- incompatible_no_output_attr_default
- incompatible_no_support_tools_in_action_inputs
- incompatible_no_target_output_group
- incompatible_no_transitive_loads
- incompatible_package_name_is_a_function
- incompatible_range_type
- incompatible_remote_symlinks
- incompatible_remove_native_git_repository
- incompatible_remove_native_http_archive
- incompatible_remove_native_maven_jar
- incompatible_static_name_resolution
- incompatible_strict_action_env
@picnoir
Copy link
Contributor Author

picnoir commented Jan 23, 2019

@mboes Fixed the CI build and moved the new blags to .bazelrc. (Also fixed the unecessary add_all() calls).

This is ready for review.

Copy link
Member

@mboes mboes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'd love it if we could identify some version of our dependencies that have no incompatible_* issues. That way we can pin to those for now, drop all exemptions in our .bazelrc, and hence be in a place where we know we won't be introduce any incompatibilities ourselves.

@picnoir
Copy link
Contributor Author

picnoir commented Jan 23, 2019

Ok.

I'll merge this first to prevent any further conflicts.

@picnoir picnoir merged commit f7b355a into master Jan 23, 2019
@mboes mboes deleted the nin-bazel-22-clean branch January 23, 2019 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants