https://pantsbuild.org/ logo
#general
Title
# general
g

gifted-autumn-61196

04/17/2023, 6:13 PM
I had a question about the golang support, is it possible to get behaviour similar to
replace
found in the go.mod? we have a seperate shared module that several systems depend on, and currently we use replace to point at the local version instead of the github module so tests are ran with any changes done to the shared module.
h

happy-kitchen-89482

04/17/2023, 6:55 PM
cc @fast-nail-55400
f

fast-nail-55400

04/17/2023, 10:04 PM
This would require some thought on what
replace
with a local directory path means for Pants. I will note that Bazel rules_go appears to not support
replace
with a local directory path, just replacing with a module name and version. https://github.com/bazelbuild/bazel-gazelle/pull/1450
g

gifted-autumn-61196

04/17/2023, 11:43 PM
with bazel the replace doesn't matter since the local repo depos are handled by bazel itself, it loads from local no matter what.
is it possible to point a dependency( the github url) to a local go_package?