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

Remove dependency on ghodss/yaml #2032

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Remove dependency on ghodss/yaml #2032

merged 1 commit into from
Dec 19, 2024

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Dec 18, 2024

Changes

I noticed that #1957 took a dep on this library even though we no longer need it. This change removes the dep and cleans up other (unused) uses of the library. We originally relied on this library to deserialize bundle configuration and JSON payloads to non-bundle CLI commands.

Relevant commits:

  • The YAML flag was added to support apps (very early), and is not longer used: e408b70
  • First use for bundle configuration loading: e47fa61
  • Switch bundle configuration loading to use libs/dyn: 87dd46a

Tests

The build works without the dependency.

Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2032
  • Commit SHA: a3832a493b30770dad166200c2174bf170eeffa0

Checks will be approved automatically on success.

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/12397523919

@pietern pietern marked this pull request as ready for review December 19, 2024 08:17
@pietern pietern enabled auto-merge December 19, 2024 08:17
@pietern pietern added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit 965a3fc Dec 19, 2024
10 checks passed
@pietern pietern deleted the remove-unused-yaml-lib branch December 19, 2024 08:29
github-merge-queue bot pushed a commit that referenced this pull request Dec 23, 2024
## Changes

1. Removes default yaml-fields during schema generation, caused by [this
PR](#2032) (current yaml package
can't read `json` annotations in struct fields)
2. Addresses missing annotations for fields from OpenAPI spec, which are
named differently in go SDK
3. Adds filtering for annotations.yaml to include only CLI package
fields
4. Implements alphabetical sort for yaml keys to avoid unnecessary diff
in PRs

## Tests

Manually 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.

3 participants