The only time I can get it to work is if the workdir is the go.mod root. If I am anywhere inside of the go project, it doesn't crawl up until it finds the go.mod, it just errors saying it wasn't able to open the go.mod.
The logic should probably be updated to be something like this:
If filepath is set, get the folder of that file and then crawl upwards
If filepath is not set, get the current workdir and then crawl upwards
The only time I can get it to work is if the workdir is the go.mod root. If I am anywhere inside of the go project, it doesn't crawl up until it finds the go.mod, it just errors saying it wasn't able to open the go.mod.
The logic should probably be updated to be something like this: