Moreover, submodules also support allowing different branches of IoTDB to track corresponding branches of TsFile. For example, the master branch of IoTDB can refer to the master branch of TsFile, and the rel/1.3 branch of IoTDB can refer to the rel/1.3 branch of TsFile. When switching branches in the IoTDB repository, the TsFile branch will also switch accordingly. We can even have IoTDB directly reference a specific fixed commit of TsFile to ensure the stability of a branch that is no longer being updated. I believe this approach makes management more convenient and flexible.
> 2024年1月5日 21:03,刘旭鑫 <[email protected]> 写道: > > Hi, I suggest setting TsFile as a submodule of IoTDB. This would allow the > 'tsfile' directory to directly reference the TsFile repository. For example, > LevelDB provides a reference to GoogleTest in this manner: > https://github.com/google/leveldb/tree/main/third_party. > The specific steps are: > > Add the submodule: git submodule add tsfile > https://github.com/apache/tsfile.git > Initialize the submodule: git submodule init > Update the submodule: git submodule update > > When cloning the IoTDB repository, use the following command to clone the > submodule as well: > > git clone --recurse-submodules https://github.com/apache/iotdb.git > > The advantage of this approach is that whenever the TsFile code is updated, > we can pull the latest code through Git. If managed through a POM, it's not > easy to package the code of TsFile that hasn't been released yet. > > —————————— > Xuxin Liu > >> 2024年1月5日 20:50,Yuan Tian <[email protected]> 写道: >> >> Hi all, >> >> Since we've already set up our tsfile repo, so if you want to make some >> changes to common-api and tsfile submodule in IoTDB repo, you also need to >> submit another pr for tsfile repo. >> >> >> Best regards, >> ------------------------ >> Yuan Tian >
