Hacker News new | ask | show | jobs
by caust1c 1855 days ago
Can you elaborate? We use `replace` everywhere in our codebase for modules that we've forked + modified.
1 comments

Assume module A depends on module B, and module B has a dependency on module github.com/C, and a replace rule for github.com/C => company.internal/C.

When you build module A, it will pull module B and module github.com/C, instead of B and company.internal/C, unless A has its own replace directive for C.