gh-mrva icon indicating copy to clipboard operation
gh-mrva copied to clipboard

cannot unmarshal number into Go value of type []string

Open Sim4n6 opened this issue 1 year ago • 1 comments

The use of database.json as

{
  "version": 1,
  "databases": {
    "variantAnalysis": {
      "repositoryLists": [
        {
          "name": "aaa-list",
          "repositories": ["sim4n6/aaa"]
        }
      ],
      "owners": [],
      "repositories": []
    }
  },
  "selected": {
    "kind": "variantAnalysisUserDefinedList",
    "listName": "aaa-list"
  }
}

in the command :

mv linux-amd64 gh-mrva
chmod +x gh-mrva
./gh-mrva submit --language cpp --session mirva-session-1 \
                                                        --list aaa-list                                    \
                                                        --query ./Queries/mine/query.ql
Resolving aaa-list repositories from /home/sim4n6/Workspace/database.json
2024/08/09 10:55:40 json: cannot unmarshal number into Go value of type []string

The issue is related to the structure of the json file ? version maybe removed ?

Sim4n6 avatar Aug 09 '24 10:08 Sim4n6

Maybe I should go. With

# Install 
gh extension install .

# Sanity check
gh mrva -h

Sim4n6 avatar Aug 09 '24 20:08 Sim4n6