Skip to content

Modified file on the robot is not overwritten by make upload #98

Discussion options

You must be logged in to vote

Using make upload to upload a consistent build to the robot will in turn call rsync:

rsync -Lrtu ... <LOCAL_REPOSITORY>/ <REMOTE_REPOSITORY>/

A particularity of rsync is that a remote file will only be updated if the local file is more recent. Otherwise, the remote file (that is, on the robot) is assumed more up-to-date, and left as is.

Consider the following scenario:

  1. Prepare a configuration file, let's call it config.gin, in the local (dev) repository
  2. Run make upload
  3. Edit the remote config.gin on the robot, change some parameters
  4. Modify the code in the dev repository (not the config)
  5. Run make upload again

In this case, the make upload from step 5 will not overwrite the remote config.gin

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephane-caron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant