Skip to content

Use git subtree instead of git submodule #55

@bminer

Description

@bminer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions