Replies: 3 comments 5 replies
-
Hmm, not very fond of having to move some go stuff to root of repository. I would perhaps rather suggest then that the go implementation should live in a separate repository. But that is perhaps undesirable for other reasons. I find it annoying that distribution/package management of a language is mandating git repo and source organisation. |
Beta Was this translation helpful? Give feedback.
-
Great idea looking at flatbuffers. It looks to me it is doing some magic as I can not even find where exactly its go.mod file is. Here is a comparison between retrieving flatbuffers and flatgeobuf:
This might actually be easier to sort up. I guess the difference might be between having a tagged version or not. Flatbuffers obviously has an associated tag while flatgeobuf does not. Let me ask around. |
Beta Was this translation helpful? Give feedback.
-
Hah. It literally just started working by itself now. I guess we do not need to take any action. |
Beta Was this translation helpful? Give feedback.
-
As I mentioned, the Go port is an ongoing thing that I will continue working on. There is something I would like to do next but I wanted to discuss it here before sending a PR.
Apparently Go modules are a bit quirky when the module is not in the root directory of the repository. The end result is that for someone to refer to the module, they need to append @master to it. Something like:
This has no real benefit and only adds to the cognitive load.
The change that I want to do will just move the go.mod and go.sum files to the root directory of the repository. By doing that, one does not need the @master to import things (the module name will change to "github.com/flatgeobuf/flatgeobuf" but that is ok as the directory where the code is will need to be appended to it so it will look like:
Which is the same as above but without the need for the @master tag.
Any objections to this?
Beta Was this translation helpful? Give feedback.
All reactions