jsonrpc2 icon indicating copy to clipboard operation
jsonrpc2 copied to clipboard

Remove local `replace` directive from `go.mod` ?

Open janpfeifer opened this issue 10 months ago • 0 comments
trafficstars

In the go.mod file you have the line:

replace go.lsp.dev/pkg => ../pkg

It can be dangerous for someone using your code next to a pkg directory that holds something else.

I think the current best practice is to use go.work ? As in something like go work init && go work use . "../pkg", and then add go.work to your .gitignore file ?

cheers

janpfeifer avatar Jan 20 '25 10:01 janpfeifer