Skip to content

Failure to unmarshal JSON for some dependencies #16

Description

@phyber

Hi,

While updating the net-mgmt/prometheus2 port to v2.31.1, I bumped into the following modules2tuple issue:

# Errors found during processing:
#       error unmarshalling: json: cannot unmarshal array into Go value of type apis.GithubRef, resp: [{"ref":"refs/tags/v1.11.0-alpha","node_id":"MDM6UmVmMTQxMjUyNTQ6cmVmcy90YWdzL3YxLjExLjAtYWxwaGE=","url":"https://api.github.com/repos/hashicorp/consul/git/refs/tags/v1.11.0-alpha","object":{"sha":"4d9b02b775338c99dc3fb4dd5fc913a5b4012e2f","type":"tag","url":"https://api.github.com/repos/hashicorp/consul/git/tags/4d9b02b775338c99dc3fb4dd5fc913a5b4012e2f"}},{"ref":"refs/tags/v1.11.0-beta1","node_id":"MDM6UmVmMTQxMjUyNTQ6cmVmcy90YWdzL3YxLjExLjAtYmV0YTE=","url":"https://api.github.com/repos/hashicorp/consul/git/refs/tags/v1.11.0-beta1","object":{"sha":"77cecd76e64ff780ffbf4915f8ecec5d10c924ad","type":"tag","url":"https://api.github.com/repos/hashicorp/consul/git/tags/77cecd76e64ff780ffbf4915f8ecec5d10c924ad"}},{"ref":"refs/tags/v1.11.0-beta2","node_id":"MDM6UmVmMTQxMjUyNTQ6cmVmcy90YWdzL3YxLjExLjAtYmV0YTI=","url":"https://api.github.com/repos/hashicorp/consul/git/refs/tags/v1.11.0-beta2","object":{"sha":"af0de3be0d8cd40d89375e8d2938f417fbd9e07a","type":"tag","url":"https://api.github.com/repos/hashicorp/consul/git/tags/af0de3be0d8cd40d89375e8d2938f417fbd9e07a"}},{"ref":"refs/tags/v1.11.0-beta3","node_id":"MDM6UmVmMTQxMjUyNTQ6cmVmcy90YWdzL3YxLjExLjAtYmV0YTM=","url":"https://api.github.com/repos/hashicorp/consul/git/refs/tags/v1.11.0-beta3","object":{"sha":"1a7b89c6cbb82ab497963846ce7e8fa39ca3b53a","type":"commit","url":"https://api.github.com/repos/hashicorp/consul/git/commits/1a7b89c6cbb82ab497963846ce7e8fa39ca3b53a"}}]

This is the modules.txt producing this error: modules.txt, and my version of modules2tuple is 2.2.2.

I haven't tried to dig into this yet, but will update the issue if I do.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions