-
Notifications
You must be signed in to change notification settings - Fork 266
Fix bicep CLI uninitialized path in container app deployments #6610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
7
commits into
main
Choose a base branch
from
copilot/vscode-mksqf1nj-yg63
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+23
−25
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Restore public EnsureInstalled() method in bicep.go - Remove automatic installation from Build() and BuildBicepParam() - Add explicit EnsureInstalled() calls in service_target_containerapp.go and bicep_provider.go - Update all test files to use public EnsureInstalled() method - Reverts incorrect changes from previous checkpoint commit This fix follows the same pattern as PR #6593 for GitHub CLI. Co-authored-by: vhvb1989 <24213737+vhvb1989@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix error in command_runner for bicep CLI
Fix bicep CLI uninitialized path in container app deployments
Jan 24, 2026
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…re/azure-dev into copilot/vscode-mksqf1nj-yg63
Member
|
/azp run azure-dev - cli |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bicep CLI path was empty when deploying container apps, causing
azd deployto fail with "command must be provided if shell is not used" in v1.23.1.Root Cause
A previous commit removed explicit
EnsureInstalled()calls while simultaneously renaming the method to privateensureInstalledOnce(). This left the CLI'spathfield uninitialized when instances were created inline inservice_target_containerapp.go.Changes
Restored explicit installation pattern:
EnsureInstalled()public inbicep.goBuild()andBuildBicepParam()methodsEnsureInstalled(ctx)calls in:service_target_containerapp.go- inline CLI creation for bicepparam deploymentsbicep_provider.go- Initialize() methodThis follows the same pattern established in PR #6593 for GitHub CLI.
Original prompt
create a PR linked to #6607 as a fix.
[Chronological Review: The conversation began with the user referencing an issue on GitHub related to the bicep CLI and an error in the command_runner. The user suspected that the error could be due to improper initialization of the bicep CLI, leading to an empty command. The user then proposed a fix to make the EnsureInstalled method private and called from public methods to improve usability. The conversation evolved to address concerns about thread safety and concurrency, leading to a request to add comments in the bicep CLI file. The user then requested to remove a public method, expressing a preference for it not to be public unless necessary for interface implementation. The user repeatedly requested the creation of a pull request (PR) linked to the GitHub issue as a fix, and finally canceled a command to delegate to a cloud agent.][Intent Mapping:
[Technical Inventory:
[Code Archaeology:
[Progress Assessment:
[Context Validation: All critical information for continuation is captured, including the proposed changes to the bicep CLI and the need for a PR.]
[Recent Commands Analysis:
1. Conversation Overview: - Primary Objectives: User aims to fix an error in the bicep CLI related to command execution and improve usability by restructuring the code. - Session Context: The conversation flowed from identifying an error, proposing a fix, discussing concurrency, and requesting code modifications, culminating in multiple requests to create a PR. - User Intent Evolution: The user shifted from diagnosing an error to proposing structural changes and ensuring the usability of the bicep CLI.- Technical Foundation:
- Bicep CLI: A command-line interface for managing Azure resources, with a focus on usability improvements.
- EnsureInstalled: A method proposed to be made private to streamline the CLI's public interface.
- Codebase Status:
- Bicep CLI file:
- Purpose: Central to managing Azure resources via command line.
- Current State: Modifications proposed to improve usability and remove unnecessary public methods.
- Key Code Segments: Discussion around the EnsureInstalled method and its visibility.
- Dependencies: Related to the overall functionality of the bicep CLI.
- Problem Resolution:
- Issues Encountered: Error in command execution due to potential improper initialization of the bicep CLI.
- Solutions Implemented: Proposed making EnsureInstalled a private method and removing unnecessary public methods.
- Debugging Context: Ongoing discussions about concurrency and thread safety.
- Lessons Learned: Importance of usability and proper initialization in command-line tools.
- Progress Tracking:
- Completed Tasks: User has proposed a fix and discussed concurrency.
- Partially Complete Work: PR creation is pending, and public method removal is in progress.
- Validated Outcomes: No specific outcomes validated yet, as the focus is on proposed changes.
- Active Work State:
- Current Focus: Creating a PR linked to the GitHub issue a...
Created from VS Code.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.