Skip to content
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

bicep refmt #117

Merged
merged 1 commit into from
May 9, 2024
Merged

bicep refmt #117

merged 1 commit into from
May 9, 2024

Conversation

mjlshen
Copy link
Contributor

@mjlshen mjlshen commented May 9, 2024

The formatting changed in the latest release...
https://github.com/Azure/bicep/releases/tag/v0.27.1

The formatting changed in the latest release...
https://github.com/Azure/bicep/releases/tag/v0.27.1

Signed-off-by: Michael Shen <[email protected]>
@@ -27,10 +27,11 @@ jobs:
- name: 'az bicep format and lint'
working-directory: './dev-infrastructure'
run: |
az bicep version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you want to keep this?

What do you think about an az bicep upgrade here as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I was running linting against it earlier, i was getting warnings about the 2023-04-01 (or 09-01) NSG/VNET resource id until i upgraded my bicep on the azure-cli.

Copy link
Contributor Author

@mjlshen mjlshen May 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did, just for easier troubleshooting - yesterday I had az bicep upgrade and it didn't actually upgrade in the GitHub Actions runner due to a bicep.use_binary_from_path configuration.

Take a look at this attempt from yesterday https://github.com/Azure/ARO-HCP/actions/runs/9006416096/job/24743908959 in the az bicep format and lint step

Run az bicep upgrade
WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'.
Installing Bicep CLI v0.26.170...
Successfully installed Bicep CLI to "/home/runner/.azure/bin/bicep".
set -e; \
FILES="$(find . -type f -name "*.bicep*")"; \
for file in $FILES; do \
echo "az bicep format --file ${file}"; \
az bicep format --file $file; \
done
az bicep format --file ./modules/aks-cluster-base.bicep
WARNING: A new Bicep release is available: v0.27.1. Upgrade now by running "az bicep upgrade".

@mjlshen mjlshen merged commit 0117869 into Azure:main May 9, 2024
3 checks passed
@mjlshen mjlshen deleted the bicepfmt branch May 9, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants