Skip to content

Remove local replace directive from go.mod ? #29

Open
@janpfeifer

Description

@janpfeifer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions