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

chore: remove hide-build-files functionality #1757

Merged
merged 1 commit into from
May 3, 2020

Conversation

alexeagle
Copy link
Collaborator

Since 1.3.0, we write a .bazelignore file into the generated workspaces, so Bazel does not see BUILD files.
The features to hide the BUILD files are no longer needed.

We also stop hiding the BUILD files in packages published by pkg_npm. This means that users who publish packages built by that rule will now require their users to have rules_nodejs 1.3.0 or greater, which adds the .bazelignore file.

BREAKING CHANGE:
rules_nodejs now requires Bazel 2.1 or greater.
Also the hide_build_files attribute was removed from pkg_npm, and always_hide_bazel_files was removed from yarn_install and npm_install.

Fixes #1613

@buildsize
Copy link

buildsize bot commented Mar 29, 2020

File name Previous Size New Size Change
release.tar.gz 958.77 KB 956.18 KB -2.59 KB (0%)

@Toxicable
Copy link

since this is a breaking change might be time to open up a 2.0 branch?

@alexeagle
Copy link
Collaborator Author

We have 1.x branch, master is 2.0 now

@Toxicable
Copy link

As part of your BReAKING CHANGE notice could you explain why those attributes were removed?

@alexeagle alexeagle force-pushed the fix1613 branch 2 times, most recently from ef3a12d to 1f5d62f Compare April 13, 2020 15:14
Copy link
Collaborator

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

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

Nice! 🎉 Removing code is the best.
A few nits:

  • hide-bazel-files can be removed from /commitlint.config.js
  • regenerate /e2e/symlinked_node_modules_npm/package-lock.json (seems to have kept its reference to @bazel/hide-bazel-files)

Since 1.3.0, we write a .bazelignore file into the generated workspaces, so Bazel does not see BUILD files.
The features to hide the BUILD files are no longer needed.

We also stop hiding the BUILD files in packages published by pkg_npm. This means that users who publish packages built by that rule will now require their users to have rules_nodejs 1.3.0 or greater, which adds the .bazelignore file.

We leave support for legacy packages which were publishing with _BUILD files.

BREAKING CHANGE:
rules_nodejs now requires Bazel 2.1 or greater.
Also the hide_build_files attribute was removed from pkg_npm, and always_hide_bazel_files was removed from yarn_install and npm_install. These are no longer needed since 1.3.0

Fixes bazel-contrib#1613
@alexeagle alexeagle merged commit 5d1d006 into bazel-contrib:master May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation for @bazel/hide-build-files package
4 participants