fix: move canary from cwd instead of build#3985
Conversation
Change move_executable to look for the canary executable in the current working directory and rename it to canary.old there. Previously the script checked and moved build/canary; the checks and mv command were updated to use $executable_name (cwd) instead of build/ to match where the artifact is produced.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe recompile.sh script updates move_executable to check for a top-level ChangesBuild executable path convention
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the move_executable function in recompile.sh to look for and move the canary executable in the current directory instead of the build/ directory. The review feedback suggests improving this change by using -f instead of -e to ensure the target is a regular file, and adding the -f flag to the mv command to prevent interactive prompts in non-interactive environments.
|
|
This PR is stale because it has been open 45 days with no activity. |



Description
eng:
Create a backup of the executable before recompiling using recompile.sh.
The current script is looking for the canary executable in the build folder. But in reality, it should be looking in the root folder.
pt-br:
O script estava procurando o executavel do canary na pasta build, mas na realidade o executavel esta na pasta raiz, entao o backup nunca era feito.
Type of change
How Has This Been Tested
Test Configuration:
Checklist
Summary by CodeRabbit