-
Notifications
You must be signed in to change notification settings - Fork 66
proposal: use git submodules for storing imgui dependencies #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks! The git action to build also need to change. |
|
The disadvantages I see here is that you'll need to generate cimgui outputs manually. It's possible to add a GitHub action which will generate and commit outputs on submodule version update. Alternatively, we can add cimgui generation as a build step. |
|
sure, I can write some workflow |
|
here is how Am I going to update submodules in workflow ;-) |
|
@gucio321 Check the ".github/workflows", run them via "Actions" for win/mac/linux, make sure they could be compiled successfully. |
use diffrent just installation method
|
yah, I'll do that as soon as I can make the current version working ;-) |
install luajit
|
@AllenDang I've a question: do I need to regenerate the whole binding after updating dependencies? |
fix typo in just command
add missing part of run command
|
ok, it seems to work now |
|
@eliasdaler like this? 40084d5 Don't you think that reffering to sh script would be better than hard-codding a command in workflow? |
eliasdaler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine overall, I'll test how well it works with my code a bit later today.
|
@gucio321, I also think that justfile needs some adjustments. It looks like it's currently not possible to do "just gencode_cimgui" locally and build new *.go files The generation should ideally generate output files to some place outside of cimgui/cimplot directories. These directories should also be added to this repo's .gitignore and not commited. This will also make GitHub workflows easier as you'll be able to just run "just gencode_cimlot" and "just gencode_cimgui". It would also be great to add ability to detect that user didn't clone submodules before running "just " by checking for some file's existence inside cimgui/cimplot dirs (e.g. README.md) |
|
@gucio321 any updates on this? It's almost ready, but needs to work locally :) |
|
oh, you're right, there is something wrong with justfile... let me take a look |
|
oh, nvm, i had corrupted submodules 😄
so @eliasdaler whot do you think, should be done here? IMO this is complete. it works locally for me |
|
I'll try it a bit later today. :) |
|
Okay, it works for me locally, that's good.
|
it, every week, updates cimgui/cimplot deps and regenerates framework, it will run only on master (main)
it does instruction from readme tbh 😄 |
|
If you don't want to remove C binding generation, you should make it so that C binding is generated outside of submodule director. Otherwise, you might run into problems if you change files inside submodule directories |
ok, fair enough, removing step responsible for regenerating c binding |
|
@eliasdaler done, now |
|
@gucio321 @eliasdaler Seems ready to merge? |
|
@AllenDang LGTM |
May I ask what LGTM stands for... |
"Looks good to me" -> let's get this merged :D |
Hi there!
there is a technology called git submodules that allows to put a git repository inside another one.
I think that instead
Drop source code of imgui to cimgui/imguiyou can just executegit submodule update --init --recursiveit has several adventages:
imguiandimplotexactly are