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

Add WORKSPACE.bazel to Starlark filenames #6127

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

Alphadelta14
Copy link
Contributor

@Alphadelta14 Alphadelta14 commented Oct 18, 2022

Add WORKSPACE.bazel as another Starklark matching case.

Description

Both WORKSPACE and WORKSPACE.bazel are valid names for the WORKSPACE file. The latter takes precedent, even though it is an alias because other projects may have a similarly named file.

Alternatively, *.bazel could be added to extensions, but .bzl is the recommended extension.

Checklist:

  • I am fixing a misclassified language
    • I have included a new sample for the misclassified language:
    • I have included a change to the heuristics to distinguish my language from others using the same extension.

@Alphadelta14 Alphadelta14 requested a review from a team as a code owner October 18, 2022 15:15
Copy link
Member

@lildude lildude left a comment

Choose a reason for hiding this comment

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

Going for the named file is fine, however...

I have included a new sample for the misclassified language:

Please do this. We need the sample added to the actual repo, not just referenced.

Both WORKSPACE and WORKSPACE.bazel are valid names for the WORKSPACE
file. The latter takes precedent, even though it is an alias because
other projects may have a similarly named file.

Alternatively, *.bazel could be added to extensions, but .bzl is
the recommended extension.

This adds a WORKSPACE.bazel file from
https://github.com/google/skia/blob/main/WORKSPACE.bazel
@lildude lildude changed the title starlark: support recognition of WORKSPACE.bazel Add WORKSPACE.bazel to Starlark filenames Oct 19, 2022
@lildude lildude merged commit 8c924ae into github-linguist:master Oct 20, 2022
@Alphadelta14 Alphadelta14 deleted the workspace-bazel branch October 20, 2022 13:41
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants