Sadly, go get https://github.com/webui-dev/go-webui/v2 is not possible without build scripts and fragile symlinks. This makes building go-webui more difficult.
While Git submodules do a great job at pointing to the original C library, I think it would be better just to copy the C library into a folder in this repo (rather than using a git submodule).
A tool really good at this is git subtree. Something like this:
git subtree pull --prefix webui https://github.com/webui-dev/webui.git main --squash
Which will squash the commits in the C library and clone it into the webui folder. Then, the commit log should include the C library commit ID. The obvious downside is that this repo would include a full copy of the C library repo in that folder.
But, now go get ... simply installs the dependency without any extra downloads, build scripts, symlinks, etc.
Sadly,
go get https://github.com/webui-dev/go-webui/v2is not possible without build scripts and fragile symlinks. This makes building go-webui more difficult.While Git submodules do a great job at pointing to the original C library, I think it would be better just to copy the C library into a folder in this repo (rather than using a git submodule).
A tool really good at this is
git subtree. Something like this:Which will squash the commits in the C library and clone it into the
webuifolder. Then, the commit log should include the C library commit ID. The obvious downside is that this repo would include a full copy of the C library repo in that folder.But, now
go get ...simply installs the dependency without any extra downloads, build scripts, symlinks, etc.