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
5 changes: 5 additions & 0 deletions cli/azd/extensions/microsoft.azd.extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release History

## Unreleased

- Fixes bug during `release` when setting `--prerelease` flag
- Fixes bug during `build` - execute permissions not set on binary for POSIX systems

## 0.7.0 (2025-12-03)

- Add language-specific .gitignore templates for `init` command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: go
displayName: AZD Extensions Developer Kit
description: This extension provides a set of tools for AZD extension developers to test and debug their extensions.
usage: azd x <command> [options]
version: 0.7.0
version: 0.7.1
capabilities:
- custom-commands
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ func copyBinaryFiles(extensionId, sourcePath, destPath string) error {
if err := internal.CopyFile(path, destFilePath); err != nil {
return fmt.Errorf("failed to copy file %s to %s: %w", path, destFilePath, err)
}
// Set execute permissions on the copied binary
if err := os.Chmod(destFilePath, 0755); err != nil {
Comment thread
wbreza marked this conversation as resolved.
return fmt.Errorf("failed to set execute permissions on %s: %w", destFilePath, err)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,18 @@ func (gh *GitHubCli) ViewRelease(cwd string, repo string, tagName string) (*Rele
func (gh *GitHubCli) CreateRelease(cwd string, tagName string, opts map[string]string, assets []string) (*Release, error) {
args := []string{"release", "create", tagName}

// Add optional arguments
// Define boolean flags that should be added without values
booleanFlags := map[string]bool{"prerelease": true, "draft": true}
Comment thread
wbreza marked this conversation as resolved.

// Add optional arguments (skip boolean flags)
for key, value := range opts {
if value != "" {
if value != "" && !booleanFlags[key] {
args = append(args, fmt.Sprintf("--%s", key), value)
}
}

// Add boolean flags
for _, flag := range []string{"prerelease", "draft"} {
// Add boolean flags (without values)
for flag := range booleanFlags {
if value, ok := opts[flag]; ok && value == "true" {
args = append(args, fmt.Sprintf("--%s", flag))
}
Expand Down
2 changes: 1 addition & 1 deletion cli/azd/extensions/microsoft.azd.extensions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.7.1
Loading