Skip to content

Commit

Permalink
Migrate off of SwiftInfo.module_name
Browse files Browse the repository at this point in the history
Use the name of the first direct module instead.
  • Loading branch information
jparise committed Sep 27, 2021
1 parent 70f1839 commit e8431a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,9 @@ def _tulsi_sources_aspect(target, ctx):
test_deps = None

if SwiftInfo in target:
module_name = target[SwiftInfo].module_name
swift_info = target[SwiftInfo]
if swift_info.direct_modules:
module_name = swift_info.direct_modules[0].name
else:
module_name = None

Expand Down

0 comments on commit e8431a1

Please sign in to comment.