<#14996 Pants cannot handle `go.mod` with replace>...
# github-notifications
c
#14996 Pants cannot handle `go.mod` with replace Issue created by asherf
Copy code
details: 18:20:36.69 [ERROR] 1 Exception encountered:  Engine traceback: in select in 
pants.backend.project_info.peek.peek in 
pants.engine.internals.graph.resolve_unexpanded_targets in 
pants.engine.internals.graph.resolve_addresses_from_specs in
 pants.engine.internals.build_files.addresses_from_address_specs in pants.engine.internals.graph.resolve_target_parametrizations (plugin/builtin/prefixtransformer:prefixtransformer) in pants.backend.go.target_type_rules.generate_targets_from_go_mod in 
pants.backend.go.util_rules.third_party_pkg.download_and_analyze_third_party_packages in pants.backend.go.util_rules.third_party_pkg.analyze_module_dependencies Traceback (most recent call last): 
File "/home/toolchain/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0rc0_py38/lib/python3.8/site-packages/pants/engine/internals/selectors.py", line 705, in 
native_engine_generator_send res = func.send(arg) File "/home/toolchain/.cache/pants/setup/bootstrap-Linux-x86_64/2.11.0rc0_py38/lib/python3.8/site-packages/pants/backend/go/util_rules/third_party_pkg.py", line 200, in 

analyze_module_dependencies version = mod_json["Replace"]["Version"] KeyError: 'Version'  FATAL: exception not rethrown
to repo: clone https://github.com/kubernetes-sigs/kustomize Add the pants script and a minimal pants config: [GLOBAL] pants_version = "2.11.0rc0" backend_packages = [ "pants.backend.experimental.go", ] run
./pants tailor
followed by
.pants peek ::
crash happens on
./pants peek
pantsbuild/pants