Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli/azd/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func (a *updateAction) Run(ctx context.Context) (*actions.ActionResult, error) {
Err: fmt.Errorf("daily builds aren't available via %s", installedBy),
Suggestion: fmt.Sprintf(
"Uninstall first with: %s\nThen install daily with: "+
"curl -fsSL https://aka.ms/install-azd.sh | bash -s -- --version daily",
"powershell -ex AllSigned -c \"Invoke-RestMethod 'https://aka.ms/install-azd.ps1'"+
" -OutFile 'install-azd.ps1'; ./install-azd.ps1 -Version 'daily'\"",
uninstallCmd),
},
}
Expand Down
3 changes: 1 addition & 2 deletions cli/azd/docs/design/azd-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Switching between a package manager and direct installs is **not supported** via

| Scenario | Guidance |
|----------|----------|
| Package manager → daily | Show: "Daily builds aren't available via {brew/winget/choco}. Uninstall with `{uninstall command}`, then install daily with `curl -fsSL https://aka.ms/install-azd.sh \| bash -s -- --version daily`" |
| Package manager → daily | Show: "Daily builds aren't available via {brew/winget/choco}. Uninstall with `{uninstall command}`, then install daily with the platform-appropriate daily install command (`install-azd.ps1` on Windows, `install-azd.sh` on Linux/macOS)" |
| Script/daily → package manager | Show: "To switch to {brew/winget/choco}, first uninstall the current version, then install via your package manager." |

This avoids the silent symlink overwrite problem that exists today with conflicting install methods.
Expand Down Expand Up @@ -377,4 +377,3 @@ The startup "out of date" warning banner is suppressed during `azd update` (stal
When the auto-update elevation warning is shown ("azd version X.Y.Z has been downloaded. Run 'azd update' to apply it."), the "out of date" warning is also suppressed to avoid showing two redundant warnings about the same condition.

---

Loading