project: add "reccmp-project update" for updating the project - #377
project: add "reccmp-project update" for updating the project#377madebr wants to merge 1 commit into
Conversation
By running , reccmp will (try to) update the project files to latest. Currently, only thing it does is copy the latest version of reccmp.cmake.
|
Is it realistic to assume that our generated cmake file will be able to address the needs of most projects? I have a feeling that most projects will have custom logic in their cmake files anyway, and any attempt to migrate that on our side will break something on theirs. Furthermore, I fear that people will likely forget about running this new command, or not know that it exists in the first place. I'd rather advertise new features in release notes, and then they can always re-generate a fresh project and merge. Or am I missing your point here? |
|
The point of the cmake script is not to provide a general fix, but a simple way to get reccmp running without messing a second time with paths. In #376 I updated the CMake script. Improvements would've remained inaccessible to users without this command. |
|
Ignoring the CMake change for a moment... we will need this when it's time for a new schema version. (We have enough users now that it would be a big help to us for this to be automated.) I don't know if any users have added comments to their YML file but AFAIK those would be dropped using our pydantic import/export process. We have to consider the case where the project maintainer updates the schema version on the repo, but an individual user's files (user.yml and build.yml) are on an earlier version. |
By running , reccmp will (try to) update the project files to latest. Currently, only thing it does is copy the latest version of reccmp.cmake.
#376 is trying to update
cmake/reccmp.cmake.Running
reccmp-project updatewill copy the latest files.Thoughts and/or alternative approaches?
Will we ever need to add a migration path whenever need to add something that is backwards incompatible?
Should I rename this command to
reccmp-project migrateinstead?Yes because it modifies the project.
No because this is not a real migration.