Skip to content

Stack List prefers remote stacks, but Get prefers local #2120

@lionello

Description

@lionello

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXAffects developer experience

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions