Skip to content

Commit

Permalink
Handle included MODULE.bazel files as well (#7057)
Browse files Browse the repository at this point in the history
* Handle included MODULE.bazel files as well


---------

Co-authored-by: JonPez2 <[email protected]>
  • Loading branch information
JonathanPerry651 and Jonpez2 authored Nov 26, 2024
1 parent 44b6c8d commit bbae0e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public BlazeFileType getBlazeFileType() {
if (fileName.startsWith("WORKSPACE")) {
return BlazeFileType.Workspace;
}
if (fileName.equals("MODULE.bazel")) {
// Files included in a MODULE.bazel must end with '.MODULE.bazel'
if (fileName.equals("MODULE.bazel") || fileName.endsWith(".MODULE.bazel")) {
return BlazeFileType.MODULE;
}
return BlazeFileType.SkylarkExtension;
Expand Down

0 comments on commit bbae0e1

Please sign in to comment.