Closed ekluzek closed 3 weeks ago
I suspect what happens is that git-fleximod doesn't handle cime's cprnc submodule because of the missing fxtag. If that's the case I wonder about a couple possibilities:
1.) Have git-fleximod still handle a submodule without a fxtag (just give a warning about it) 2.) Have git-fleximod refuse to handle a .gitmodule submodule without fxtag and abort with an error (this would require a change in cime) 3.) Have git-fleximod give a warning about the submodule and tell the user how to handle it
Those are the ideas I have...
Of your list 1 is the intended action. Perhaps the warning is not clear? I think I have also determined that there is a problem in recursion in the 0.7.6 version that I am working on and will have a fix soon.
Ahh, good to know. I think maybe the recursion issue leads to the problem I see when I blow away cime. It obviously works correctly in other contexts and I don't know why there would be an issue in this case. So I'll try this again when you bring that fix in.
Anyway, the issue on the warning is that I as a user may not understand it's significance. Perhaps adding a line that says something like
"Handling by checking out the latest version on the default branch for this submodule"
That way I am told what git-fleximod is trying to do. Without it I wondered if this case, just wasn't handled by git-fleximod.
How does that sound for an addition line for the warning @jedwards4b?
This now works for me when I update to v0.7.7. It also gives a message about recursively checking everything out under a given submodule, so I think the messaging is good now as well.
So closing.
Fixed with #43 v0.7.7
The cime submodule .gitmodules for cime6.0.246 doesn't have fxtag in it and as such results in a couple of things that are awkward. Namely that if I blow away the cime directory and contents it's difficult to get it back to normal.
First is warns that there is no "fxtag" for cprnc in cime's .gitmodules. I think this is because the intent is to get the latest on master for cprnc in cime.
And then cime is identified as modified with git status and cprnc is identified as modified inside of cime
I've tried various things to then restore it, but the only thing that works for me is: