I thought you may be interested in my feedback after investigating your Nx go package and deciding to instead roll my own.
I was:
- unhappy that it requires go.
- unhappy that it requires .work file
Because my use case was much smaller than what this plugin covers, I decided to create my own.
It uses treesitter web, the wasm version, to parse the go files to understand imports. To parse go.mod it uses regex since that file format is relatively simple.
It ignores .work entirely since it is my understanding that this file is not required to build go apps.
My version focuses only on detecting dependencies between go apps - it doesn't use createNodeV2 at all, instead relying on go apps to already be detected as apps via project.json.
Anyway, I do think there's an opportunity to simplify the dependencies.
Wishing you all the best!
I thought you may be interested in my feedback after investigating your Nx go package and deciding to instead roll my own.
I was:
Because my use case was much smaller than what this plugin covers, I decided to create my own.
It uses treesitter web, the wasm version, to parse the go files to understand imports. To parse go.mod it uses regex since that file format is relatively simple.
It ignores .work entirely since it is my understanding that this file is not required to build go apps.
My version focuses only on detecting dependencies between go apps - it doesn't use createNodeV2 at all, instead relying on go apps to already be detected as apps via project.json.
Anyway, I do think there's an opportunity to simplify the dependencies.
Wishing you all the best!