Skip to content

Commit

Permalink
Update internal/bzlmod/go_mod.bzl
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
  • Loading branch information
stefanpenner and fmeum authored Apr 29, 2024
1 parent f64ee8d commit 70ade39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/bzlmod/go_mod.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _relativize_replace_paths(go_mod, go_mod_path):

if value.file_path:
# drop the go.mod from the path, to get the directory
directory = go_mod_path.get_child("../")
directory = go_mod_path.dirname

# now that we have the directory, we can use the use replace directive to get the full path
file_path = str(directory.get_child(value.file_path))
Expand Down

0 comments on commit 70ade39

Please sign in to comment.