Skip to content

Deleted legacy pip_import rule - #582

Merged
alexeagle merged 1 commit into
bazel-contrib:mainfrom
UebelAndre:legacy
Dec 28, 2021
Merged

Deleted legacy pip_import rule#582
alexeagle merged 1 commit into
bazel-contrib:mainfrom
UebelAndre:legacy

Conversation

@UebelAndre

@UebelAndre UebelAndre commented Dec 24, 2021

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Does not include precompiled binaries, eg. .par files. See CONTRIBUTING.md for info
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

As described in #436 (comment), maybe it's time to clean out the old pip repository rules. In investigating cache invalidation issues. I've often been confused by what code path was being used since the two are quite similar.

Issue Number: #436 (comment)

What is the new behavior?

This change deletes some old rules that have long since been considered legacy and have modern replacements that are actively being developed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@UebelAndre
UebelAndre marked this pull request as ready for review December 24, 2021 22:23
@UebelAndre

Copy link
Copy Markdown
Contributor Author

@alexeagle @hrfuller Based on the conversation at #436 (comment), I've opened this PR. I think the rules have been communicated as EOL for some time so just deleting them feels acceptable to me but if you're hoping for a more transitional closure this code then I'm happy to defer to a PR from either one of you 😄

@hrfuller hrfuller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, modulo comment about PR hygiene.

Comment thread .gitignore
/bazel-genfiles
/bazel-out
/bazel-testlogs
user.bazelrc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this a drive-by?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a recommended pattern and was used in testing this Pr. I'd recommend it stay if possible

@@ -1 +1,2 @@
test --test_output=errors
# https://docs.bazel.build/versions/main/best-practices.html#using-the-bazelrc-file
try-import %workspace%/user.bazelrc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This change seems good but also unrelated to this PR. Should it be its own?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Does it matter hugely if this is included? I was a way for me to test the changes since the examples are already a little difficult to run. I found this to be necessary in validating the changes were safe and would opt to leave it in.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It doesn't matter hugely. In cases where we have to revert functionality it can matter, because this is a feature we want regardless of this PR.

@UebelAndre

Copy link
Copy Markdown
Contributor Author

@hrfuller i think the changes here should be merged as is. Do you feel super strongly otherwise?

@alexeagle alexeagle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread tools/BUILD

@alexeagle alexeagle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ooh this also has the amazing side-effect of reducing the size of this repo enough that I think we can just ship the GH archive file rather than uploading our own release artifact

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.

3 participants