diff --git a/internal/bzlmod/go_mod.bzl b/internal/bzlmod/go_mod.bzl index b48274253..66a220f3d 100644 --- a/internal/bzlmod/go_mod.bzl +++ b/internal/bzlmod/go_mod.bzl @@ -350,7 +350,7 @@ def sums_from_go_work(module_ctx, go_work_label): go_work_path = module_ctx.path(go_work_label) # 2. use the go_work_path to create a path for the heisen go.work.sum file - maybe_go_work_sum_path = go_work_path.get_child("../go.work.sum") + maybe_go_work_sum_path = go_work_path.dirname.get_child("go.work.sum") # 3. check for its existence if maybe_go_work_sum_path.exists: