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

Do not emit warning on YAML anchor blocks #1354

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

andrewnester
Copy link
Contributor

Changes

In 0.217.0 we started to emit warning on unknown fields in YAML configuration but wrongly considered YAML anchor blocks as unknown field.

This PR fixes this by skipping normalising of YAML blocks.

Tests

Added regression tests

@andrewnester andrewnester added this pull request to the merge queue Apr 10, 2024
Merged via the queue into main with commit d914a1b Apr 10, 2024
5 checks passed
@andrewnester andrewnester deleted the fix/yaml-anchor-warning branch April 10, 2024 10:01
andrewnester added a commit that referenced this pull request Apr 10, 2024
CLI:
 * Don't attempt auth in `auth profiles --skip-validate` ([#1282](#1282)).
 * Fixed typo in error template for auth describe ([#1341](#1341)).

Bundles:
 * Correctly transform libraries in for_each_task block ([#1340](#1340)).
 * Do not emit warning on YAML anchor blocks ([#1354](#1354)).
 * Fixed pre-init script order ([#1348](#1348)).
 * Execute preinit after entry point to make sure scripts are loaded ([#1351](#1351)).

Dependency updates:
 * Bump internal terraform provider version to `1.39` ([#1339](#1339)).
 * Bump golang.org/x/term from 0.18.0 to 0.19.0 ([#1343](#1343)).
 * Bump github.com/hashicorp/hc-install from 0.6.3 to 0.6.4 ([#1344](#1344)).
 * Bump golang.org/x/mod from 0.16.0 to 0.17.0 ([#1345](#1345)).
 * Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 ([#1347](#1347)).
 * Bump golang.org/x/sync from 0.6.0 to 0.7.0 ([#1346](#1346)).
@andrewnester andrewnester mentioned this pull request Apr 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 10, 2024
CLI:
* Don't attempt auth in `auth profiles --skip-validate`
([#1282](#1282)).
* Fixed typo in error template for auth describe
([#1341](#1341)).

Bundles:
* Correctly transform libraries in for_each_task block
([#1340](#1340)).
* Do not emit warning on YAML anchor blocks
([#1354](#1354)).
* Fixed pre-init script order
([#1348](#1348)).
* Execute preinit after entry point to make sure scripts are loaded
([#1351](#1351)).


Dependency updates:
* Bump internal terraform provider version to `1.39`
([#1339](#1339)).
* Bump golang.org/x/term from 0.18.0 to 0.19.0
([#1343](#1343)).
* Bump github.com/hashicorp/hc-install from 0.6.3 to 0.6.4
([#1344](#1344)).
* Bump golang.org/x/mod from 0.16.0 to 0.17.0
([#1345](#1345)).
* Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0
([#1347](#1347)).
* Bump golang.org/x/sync from 0.6.0 to 0.7.0
([#1346](#1346)).
@andrewnester andrewnester mentioned this pull request Apr 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 10, 2024
CLI:
* Don't attempt auth in `auth profiles --skip-validate`
([#1282](#1282)).
* Fixed typo in error template for auth describe
([#1341](#1341)).

Bundles:
* Correctly transform libraries in for_each_task block
([#1340](#1340)).
* Do not emit warning on YAML anchor blocks
([#1354](#1354)).
* Fixed pre-init script order
([#1348](#1348)).
* Execute preinit after entry point to make sure scripts are loaded
([#1351](#1351)).

Dependency updates:
* Bump internal terraform provider version to `1.39`
([#1339](#1339)).
* Bump golang.org/x/term from 0.18.0 to 0.19.0
([#1343](#1343)).
* Bump github.com/hashicorp/hc-install from 0.6.3 to 0.6.4
([#1344](#1344)).
* Bump golang.org/x/mod from 0.16.0 to 0.17.0
([#1345](#1345)).
* Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0
([#1347](#1347)).
* Bump golang.org/x/sync from 0.6.0 to 0.7.0
([#1346](#1346)).

## Changes
<!-- Summary of your changes that are easy to understand -->

## Tests
<!-- How is this tested? -->
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.

None yet

2 participants