Stack List prefers remote stacks, but Get prefers local
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
Research direction
Start in src/pkg/stacks/manager.go at the linked Load method, then trace getSpecifiedStack and the implementation behind defang stack ls. Confirm how local files and the remote Fabric database are selected, and update the behavior so local stack data consistently overrides remote data across listing, loading, and specified-stack lookup.
Written by the indexing model from the issue text.
Description
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. https://github.com/DefangLabs/defang/blob/3968770a545dd22c679c9c81948d7676c1edb454/src/pkg/stacks/manager.go#L153
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).
- Dominant language
- Go
- Stars
- 166
- Forks
- 24
- Avg merge
- 10h 8m
- Merged PRs (30d)
- 33
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DefangLabs/defang
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DefangLabs/defang#2122 ·
-
aws
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DefangLabs/defang#2060 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DefangLabs/defang#2013 ·
-
Difficulty 2/5 Half a day Newbie friendliness 72/100
DefangLabs/defang#2002 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
DefangLabs/defang#2275 ·
All issues in DefangLabs/defang
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100