editorconfig / editorconfig-gedit

EditorConfig plugin for Gedit
http://editorconfig.org
Other
54 stars 13 forks source link

Replace embedded editorconfig-core-py with submodule. #17

Closed mcepl closed 1 year ago

mcepl commented 6 years ago

Fixes #11

What about this?

xuhdev commented 6 years ago

Thanks. @treyhunner Do you remember the reason that we didn't use submodule here?

treyhunner commented 6 years ago

@xuhdev I do not. I'm guessing I didn't do a submodule originally because vendoring the code more directly makes it easier to retrieve for those checking it out from GitHub (no need to do anything beyond just a git clone). Also the auto-generated ZIP files on GitHub probably won't have the core library.

As long as we can (and make sure to) manually bundle the core library in the ZIP files when we put those on GitHub for download, I think this might be fine.

mcepl commented 6 years ago

Well, that's the question how do you imagine the standard way of delivering plugins for gedit is. For example with vim, it is now (even officially with vim8) having directory with directories per plugin (they given be git submodules of one big ~/.vim/ git repo). Or that install.sh should actually make symlinks not copy of the files, so you can still update just by git pull.

xuhdev commented 1 year ago

I remembered why, it is a subtree. Update the directory using

git subtree pull --prefix editorconfig-core-py https://github.com/editorconfig/editorconfig-core-py master

Notes added to README