Skip to content

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented Nov 1, 2023

The location of the @bazel_tools and @platforms repositories were originally part of the semantics.bzl config because performing rewrites on the code as part of the Bazel code export process was too difficult.

With the direction being reversed (imported instead of exported), and the scope of the codebase being reduced (just rules_python instead of the entire Bazel codebase), it's easier to perform copybara rewrites.

In particular, the "// strings are problematic to rewrite because they look like intra-repo references instead of parts of a larger expression.

The location of the @bazel_tools and @platforms repositories were
originally part of the semantics.bzl config because performing rewrites
on the code as part of the Bazel code export process was too difficult.

With the direction being reversed (imported instead of exported), and
the scope of the codebase being reduced (just rules_python instead
of the entire Bazel codebase), it's easier to perform copybara rewrites.

In particular, the `"//` strings are problematic to rewrite because
they look like intra-repo references instead of parts of a larger
expression.
@rickeylev rickeylev changed the title cleanup(pystar): Inline @bazel_tools references cleanup(pystar): inline @bazel_tools and @platforms references Nov 1, 2023
@rickeylev rickeylev marked this pull request as ready for review November 1, 2023 19:33
@rickeylev rickeylev requested a review from groodt November 1, 2023 21:05
Copy link
Collaborator

@groodt groodt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@groodt groodt left a comment

Choose a reason for hiding this comment

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

LGTM

@rickeylev rickeylev added this pull request to the merge queue Nov 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 1, 2023
@rickeylev rickeylev added this pull request to the merge queue Nov 2, 2023
Merged via the queue into bazel-contrib:main with commit 36e8c81 Nov 2, 2023
@rickeylev rickeylev deleted the semantics.cleanup branch November 2, 2023 21: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.

3 participants