-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use --stringify
in remarshal
#55
Conversation
@Mr-Andersen Do you have an example of your I didn't realize this, but it appears there is some notion of dates within yaml files? https://yaml.org/spec/1.2.2/#tags And by default The
From this definition it sounds like in addition to turning date-time keys and values in strings, it also turns boolean and null keys into strings? I guess this is alright and wouldn't cause a problem anywhere? |
Here is the file: https://github.com/commercialhaskell/stackage-snapshots/blob/master/nightly/2024/11/9.yaml. I guess this is the problematic line.
YAML doesn't have non-string keys, as far as I know, so it should be OK. |
Oh, to be clear: my stack.yaml was just |
Oh, I tried switching back to LTS (lts-22.41) and your branch and it happens with LTS too. I'm guessing stackage adds this date now everywhere? |
@Mr-Andersen Thanks a lot for fixing this and giving an example where it fails! I submitted a bug upstream to |
Hmm, so it looks like |
@Mr-Andersen I pushed a commit only conditionally using |
Yep, it works :) |
Thanks! I've released this as https://github.com/cdepillabout/stacklock2nix/releases/tag/v4.1.0 |
Thank you for making such simple and well-documented tool! A breath of fresh air after haskell.nix :) |
I've got this error:
Error: Cannot convert data to JSON (Object of type datetime is not JSON serializable)
, coming fromremarshal
. Fixed it in this commit. Fix was tested in local environment