We needed a new Toml library that allowed us to hook into UnmarshalTOML and we needed to write a custom unmarshal function for the complex type that is a poetry dependency. We do this using the new primitive toml type from the newly imported toml library.
Tests have been updated to reflect the correct state of a poetry.lock file.
Summary
Fixes #2954
The poetry lock file allows for different types to be set as values when parsing dependencies:
Because of this we needed to do two things.
We needed a new Toml library that allowed us to hook into
UnmarshalTOML
and we needed to write a custom unmarshal function for the complex type that is a poetry dependency. We do this using the new primitive toml type from the newly imported toml library.Tests have been updated to reflect the correct state of a poetry.lock file.