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

Rename SymlinkEvent.to to SymlinkEvent.path and SymlinkEvent.from to SymlinkEvent.target. #6885

Closed
wants to merge 1 commit into from

Conversation

benjaminp
Copy link
Collaborator

@benjaminp benjaminp commented Dec 11, 2018

This naming has the advantages of

  1. Being more consistent with traditional symlink terminology (c.f. man ln), other workspace log events ("path" is used for the filesystem entry that is created in the other event messages), and Bazel Starlark APIs ("SymlinkEntry" uses "path" and "target_file").
  2. Avoids field names that are likely to be language keywords. In particular, "from" is a keyword in Python.

I assume the compatibility breakage here is okay because the workspace log is all under --experimental_workspace_rules_log_file.

This fixes #6887.

@benjaminp benjaminp force-pushed the symlink-names branch 2 times, most recently from f4513d4 to 8e9133a Compare December 11, 2018 00:57
…SymlinkEvent.target.

This naming has the advantages of
1. Being more consistent with traditional symlink terminology (c.f. `man ln`), other workspace log events ("path" is used for the filesystem entry that is created in the other event messages), and Bazel Starlark APIs ("SymlinkEntry" uses "path" and "target_file").
2. Avoids field names that are likely to be language keywords. In particular, "from" and "to" are both keywords in Python.

I assume the compatibility breakage here is okay because the workspace log is all under --experimental_workspace_rules_log_file.
@jin jin added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Dec 11, 2018
@dslomov dslomov assigned aehlig and agoulti and unassigned dslomov Dec 14, 2018
@dslomov
Copy link
Contributor

dslomov commented Dec 14, 2018

@aehlig @agoulti wdyt? See also #6887

@agoulti
Copy link

agoulti commented Dec 14, 2018

Looks good to me.
Thanks for fixing this for Python users!

@aehlig aehlig removed their assignment Dec 18, 2018
@aehlig aehlig requested a review from agoulti December 18, 2018 15:27
@bazel-io bazel-io closed this in df4ceb4 Dec 27, 2018
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
@philwo philwo removed the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workspace log proto uses Python reserved keyword
7 participants