esm-tools / esm_tools

Simple Infrastructure for Earth System Simulations
https://esm-tools.github.io/
GNU General Public License v2.0
25 stars 12 forks source link

esm_master double git clone #1236

Open JanStreffing opened 1 week ago

JanStreffing commented 1 week ago

While trying to build a new setup version awicm3-v3.3 with FESOM2.6 I get the following error:

ERROR: destination already exists
---------------------------------
Some coponents couldn't be downloaded because their destination paths already exists (see list below). If you want to download again the model consider deleting that folder. If instead, you want to keep that, you can use other esm_master commands (e.g. esm_master comp-<model>-<version>). Destinations already present:
- awicm3-v3.3/oasis

I found that the clone command for oasis happens twice:

esm_master install-awicm3-v3.3
    Executing commands in this order:
         mkdir -p awicm3-v3.3
         cd awicm3-v3.3
         git clone -b awicm-3.1 https://gitlab.dkrz.de/modular_esm/oasis3-mct.git oasis
         git clone -b awicm-3.1 https://gitlab.dkrz.de/modular_esm/oasis3-mct.git oasis
         git clone -b master https://gitlab.dkrz.de/ec-earth/xios-2.5.git xios
         git clone -b awicm3-frontiers-freeze-candidate-1 https://gitlab.dkrz.de/ec-earth/runoff-mapper.git rnfmap
         git clone -b awicm-3.2 https://gitlab.dkrz.de/ec-earth/oifs-43r3.git oifs-43r3
         chmod 700 -R oifs-43r3
         git clone -b 2.6 https://github.com/FESOM/fesom2.git fesom-2.6

Of course, the second one will fail. I remember I already had this problem once before, and it was solved, but I can not recall how, nor do I find an issue here from last time.

mandresm commented 1 week ago

What branch are you using?

JanStreffing commented 1 week ago

Right.. https://github.com/esm-tools/esm_tools/tree/feat/awicm_v33_fesom_26

mandresm commented 1 week ago

I'll look at this tomorrow.