Azure / Azure/azure-dev

azd update: concurrent update locking

Open
#6,986 0 comments 0 reactions 0 assignees View on GitHub
area/core-cli enhancement
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

## Problem
No file locking on staging directory. Multiple concurrent `azd` instances could race — e.g. two terminals running `azd version` both trigger background staging, or a user runs `azd update` while auto-staging is in progress.

## Proposed
- Use file lock (e.g. `gofrs/flock`) on the staging directory during download and apply
- Skip staging if lock is already held (another instance is handling it)

## Context
Raised in design review #6910 and PR #6942 code review.

Parent epic: #6721

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.