Description
Warn the user when the compose file has changed and that a solo rebuild will be required for the changes to take affect.
- Given an invocation of solo start, stop, restart
When the project compose files found are newer than the generated state directory compose file
Then warn the user that the running app may be outdated and a rebuild may be necessary
Developer Notes
Needs to take in to account all override files that might be used when defining the project, which get combined in to a single docker compose file in the state directory.
Selection of state directory docker compose file or the project files is done using a ProjectOptions helper function passed to the compose projects load project function. This file must set the project files to reference and/or return an error, which halts loading of the project.
Therefore there's no opportunity using the WithComposeFiles option function to capture both the state directory or project directory compose files and which are newest.
This function may want moving to a method on the project and refactor the WithComposeFiles function to simple pass through that list once they're found.
Then have a function which returns the status of the files for display purposes.
This requires FE changes to show the changes. Maybe wait until solo commands have a FE before proceeding.
Description
Warn the user when the compose file has changed and that a
solo rebuildwill be required for the changes to take affect.When the project compose files found are newer than the generated state directory compose file
Then warn the user that the running app may be outdated and a rebuild may be necessary
Developer Notes
Needs to take in to account all override files that might be used when defining the project, which get combined in to a single docker compose file in the state directory.
Selection of state directory docker compose file or the project files is done using a ProjectOptions helper function passed to the compose projects load project function. This file must set the project files to reference and/or return an error, which halts loading of the project.
Therefore there's no opportunity using the WithComposeFiles option function to capture both the state directory or project directory compose files and which are newest.
This function may want moving to a method on the project and refactor the WithComposeFiles function to simple pass through that list once they're found.
Then have a function which returns the status of the files for display purposes.
This requires FE changes to show the changes. Maybe wait until solo commands have a FE before proceeding.