Closed singhd789 closed 1 month ago
Doesn't seem redundant... the docs
step is now broken. Can you elaborate on why this additionalInstructions
writing step is redundant?
@ilaflott the additionalInstructions
are per component in the compile yaml for fremake. They are being written for if there are multiple repos https://github.com/NOAA-GFDL/fre-cli/blob/a6c744c89be82a04cdb8eb7cd8dbdb6c16956385/fre/make/gfdlfremake/checkout.py#L76 and for if there are not multiple repos https://github.com/NOAA-GFDL/fre-cli/blob/a6c744c89be82a04cdb8eb7cd8dbdb6c16956385/fre/make/gfdlfremake/checkout.py#L78 already.
So the next write
line https://github.com/NOAA-GFDL/fre-cli/blob/a6c744c89be82a04cdb8eb7cd8dbdb6c16956385/fre/make/gfdlfremake/checkout.py#L80 is not needed, as it would just paste the same additionalInstructions
that were defined per component, and already written.
@ilaflott maybe I misunderstood something about the documentation process? Let me try to see what I can find
OK fair- your proposed change seems totally unrelated to the doc failure, i don't know what that's about.
is it possible to re-factor this functions logic a little bit?
one could argue the redundant line is there because what the function is accomplishing isn't super clear.
Describe your changes
Remove
self.checkoutScript.write(c['additionalInstructions'])
because this step was done previously. This line was redundant and was causingadditionalInstructions
to be written one more time than needed in the checkout script that is created.Issue ticket number and link (if applicable)
N/A
Checklist before requesting a review