Skip to content

Commit

Permalink
Replace __main__ with _main which is fixed name for runfiles dir in b…
Browse files Browse the repository at this point in the history
…zlmod"
  • Loading branch information
cerisier committed Jan 2, 2025
1 parent e94fc8f commit 776d6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/runfiles/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let runfiles = try Runfiles.create()

// Runfiles lookup paths have the form `my_workspace/package/file`.
// Runfiles path lookup may return nil.
guard let runFile = runfiles.rlocation("__main__/examples/runfiles/data/sample.txt") else {
guard let runFile = runfiles.rlocation("_main/examples/runfiles/data/sample.txt") else {
fatalError("couldn't resolve runfile")
}

Expand Down

0 comments on commit 776d6e1

Please sign in to comment.