Since https://github.com/DefangLabs/defang-mvp/issues/2655 defang stack ls overwrites any info from local stack files with the info from the remote (fabric) DB.
But when deploying, the Load method loads local stack files, and only checks remote when file loading fails.
|
func (sm *manager) Load(ctx context.Context, name string) (*Parameters, error) { |
Similarly, getSpecifiedStack also read local stack first, and remote on os.IsNotExist.
IMHO, local files should override remote (to ensure users have a way to override).
Since https://github.com/DefangLabs/defang-mvp/issues/2655
defang stack lsoverwrites any info from local stack files with the info from the remote (fabric) DB.But when deploying, the
Loadmethod loads local stack files, and only checks remote when file loading fails.defang/src/pkg/stacks/manager.go
Line 153 in 3968770
Similarly,
getSpecifiedStackalso read local stack first, and remote onos.IsNotExist.IMHO, local files should override remote (to ensure users have a way to override).