Fix sorc/upp.fd link ordering to prevent broken symlinks#4480
Closed
Fix sorc/upp.fd link ordering to prevent broken symlinks#4480
Conversation
Co-authored-by: aerorahul <[email protected]>
Copilot
AI
changed the title
[WIP] Fix links created before sorc/upp.fd creation in link_workflow.sh
Fix sorc/upp.fd link ordering to prevent broken symlinks
Jan 28, 2026
| ${LINK_OR_COPY} "${HOMEgfs}/sorc/upp.fd/parm/${dir}" . | ||
| done | ||
| if [[ -d "${HOMEgfs}/sorc/upp.fd" ]]; then | ||
| [[ -f "${HOMEgfs}/sorc/upp.fd/parm/params_grib2_tbl_new" ]] && \ |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| [[ -f "${HOMEgfs}/sorc/upp.fd/parm/params_grib2_tbl_new" ]] && \ | |
| [[ -f "${HOMEgfs}/sorc/upp.fd/parm/params_grib2_tbl_new" ]] && |
| if [[ -d "${HOMEgfs}/sorc/upp.fd" ]]; then | ||
| [[ -f "${HOMEgfs}/sorc/upp.fd/parm/params_grib2_tbl_new" ]] && \ | ||
| ${LINK_OR_COPY} "${HOMEgfs}/sorc/upp.fd/parm/params_grib2_tbl_new" . | ||
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/nam_micro_lookup.dat" ]] && \ |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/nam_micro_lookup.dat" ]] && \ | |
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/nam_micro_lookup.dat" ]] && |
| ${LINK_OR_COPY} "${HOMEgfs}/sorc/upp.fd/fix/nam_micro_lookup.dat" . | ||
|
|
||
| for dir in gfs gcafs gefs sfs; do | ||
| [[ -d "${HOMEgfs}/sorc/upp.fd/parm/${dir}" ]] && \ |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| [[ -d "${HOMEgfs}/sorc/upp.fd/parm/${dir}" ]] && \ | |
| [[ -d "${HOMEgfs}/sorc/upp.fd/parm/${dir}" ]] && |
| for file in optics_luts_DUST.dat optics_luts_DUST_nasa.dat optics_luts_NITR_nasa.dat \ | ||
| optics_luts_SALT.dat optics_luts_SALT_nasa.dat optics_luts_SOOT.dat optics_luts_SOOT_nasa.dat \ | ||
| optics_luts_SUSO.dat optics_luts_SUSO_nasa.dat optics_luts_WASO.dat optics_luts_WASO_nasa.dat; do | ||
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/chem/${file}" ]] && \ |
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/chem/${file}" ]] && \ | |
| [[ -f "${HOMEgfs}/sorc/upp.fd/fix/chem/${file}" ]] && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
sorc/link_workflow.shcreated symlinks to files withinsorc/upp.fdbefore thesorc/upp.fddirectory link existed (lines 151-161, 397 referenced it; line 466 created it). Script failures before line 466 left broken symlinks.Changes:
sorc/upp.fdlink creation from line 466 to line 143 (before first usage)Before:
After:
Verified gsi.fd and enkf.fd have no similar issues.
Type of change
Change characteristics
How has this been tested?
bash -n)Checklist
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.