jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.62k stars 174 forks source link

marshal: replace `github.com/ghodss/yaml` with `gopkg.in/yaml.v2` #347

Closed Juneezee closed 1 year ago

Juneezee commented 1 year ago

Hi :wave:

The github.com/ghodss/yaml package is no longer actively maintained. There are numerous inquiries about the project's status on its issue tracker: https://github.com/ghodss/yaml/issues.

Since we are only using the JSONToYAML from github.com/ghodss/yaml, we can implement the code ourselves ^1 and remove an extra dependency.


Alternatively, we can replace github.com/ghodss/yaml with sigs.k8s.io/yaml, which is a permanent fork currently maintained by Kubernetes SIG. Please let me know if you prefer using a package for YAML unmarshalling, and I will gladly update this pull request.