flakestry.dev icon indicating copy to clipboard operation
flakestry.dev copied to clipboard

Decoder error when showing nixus package

Open adamdicarlo0 opened this issue 2 years ago • 2 comments

This package gives a decoder error: https://flakestry.dev/flake/github/infinisil/nixus/0.1.3

The Json.Decode.oneOf at json.packages failed in the following 2 ways:



(1) Problem with the value at json['aarch64-linux'].example:
    
        {}
    
    Expecting an OBJECT with a field named `type`



(2) Problem with the given value:
    
    {
            "x86_64-linux": {
                "example": {
                    "name": "deploy",
                    "type": "derivation"
                }
            },
            "aarch64-linux": {
                "example": {}
            },
            "x86_64-darwin": {
                "example": {}
            },
            "aarch64-darwin": {
                "example": {}
            }
        }
    
    Expecting null

adamdicarlo0 avatar Dec 19 '23 23:12 adamdicarlo0

Tried to reproduce this by forking the repo and it published without problems: https://flakestry.dev/flake/github/m1-s/nixus/0.1.3

Can you provide some more details on how you got to this error?

m1-s avatar Feb 15 '24 08:02 m1-s

The decoder error is on the linked webpage:

image

adamdicarlo0 avatar Feb 15 '24 19:02 adamdicarlo0