Skip to content

Commit 19c415c

Browse files
committed
fix: add --force argument to decompile task to preserve default behaviour
1 parent 8752f53 commit 19c415c

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ Starting with the patch 0.3.4, warnings in the build or decompilation processes
118118

119119
Please consider using the latest version of the Bicep CLI, this extension does not ensure a correct execution with versions prior to `0.4.x`.
120120

121+
## Decompile command
122+
123+
Starting on version `0.3.7` of this extension, the decompile command will overwrite the destination file if it exists.
124+
121125
# Local Development
122126

123127
**Note:** [Bicep](https://github.com/Azure/bicep) must be installed in the local machine. [TypeScript](https://www.typescriptlang.org/download) must be also installed as a global package (`npm i typescript -g`).

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-devops-bicep-task",
3-
"version": "0.3.6",
3+
"version": "0.3.7",
44
"description": "Tasks for installing Bicep CLI and running Bicep CLI build commands",
55
"main": "index.js",
66
"scripts": {

src/decompile/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function getBicepTool(): string | undefined {
114114

115115
export function executeBicepDecompile(files: string[], bicepTool: string, additionalArgsByInputs: string[]): void {
116116
files.forEach((file: string) => {
117-
const args = ['decompile', file, ...additionalArgsByInputs];
117+
const args = ['decompile', file, ...additionalArgsByInputs, '--force'];
118118
const bicepProcess = taskLib.tool(bicepTool).arg(args).execSync();
119119

120120
if (bicepProcess.code !== 0) {

src/decompile/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 0,
1818
"Minor": 3,
19-
"Patch": 6
19+
"Patch": 7
2020
},
2121
"instanceNameFormat": "Run Bicep CLI decompile command",
2222
"inputs": [

src/install/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 0,
1818
"Minor": 3,
19-
"Patch": 6
19+
"Patch": 7
2020
},
2121
"instanceNameFormat": "Install Bicep CLI",
2222
"inputs": [

src/run/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 0,
1818
"Minor": 3,
19-
"Patch": 6
19+
"Patch": 7
2020
},
2121
"instanceNameFormat": "Run Bicep CLI build command",
2222
"inputs": [

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifestVersion": 1,
33
"id": "bicep-tasks",
4-
"version": "0.3.6",
4+
"version": "0.3.7",
55
"name": "Bicep Tasks",
66
"publisher": "piraces",
77
"description": "Provides Azure DevOps tasks to install and run Microsoft Bicep CLI commands (cross-platform)",

0 commit comments

Comments
 (0)