Arduino-cli core install fails due to bad size in boardsmanager json

Howdy all. Trying to use arduino-cli in GitHub actions, but the size in the boardsmanager json doesn’t match the download, so it fails.

arduino-cli core update-index --additional-urls https://boardsmanager.com/package_move38.com-blinks_index.json
arduino-cli core install arduino:avr
arduino-cli core install move38:avr --additional-urls https://boardsmanager.com/package_move38.com-blinks_index.json

Feedback from arduino-cli:

Error during install: installing platform move38:avr@1.2.0: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index

Full file:

Content of JSON on boardsmanager:

{
  "packages": [
    {
	  "name": "move38",
	  "maintainer": "Move38.com",
	  "websiteURL": "http://move38.com",
	  "email": "move38arduino@joshreply.com",

      "help": {
        "online": "https://github.com/bigjosh/Move38-Arduino-Platform"
      },
      "platforms": [
        {
          "name": "Blinks by Move38.com",
          "architecture": "avr",
          "version": "1.2.0",
          "category": "Contributed",
          "help": {
            "online": "https://github.com/bigjosh/Move38-Arduino-Platform"
          },
          "url": "https://github.com/bigjosh/Move38-Arduino-Platform/releases/download/1.2/Move38-Arduino-Platform-main.zip",
          "archiveFileName": "Move38-Arduino-Platform-main.zip",
          "checksum": "SHA-256:EE61F574C3E3501D749A251D3004F0C78E2CCC9AEEB88C3A23EE173D69838201",
          "size": "1334106",
          "boards": [
            {"name": "Blinks by Move38.com"}
		   ],
		   
          "toolsDependencies": [
            {
              "packager": "arduino",
              "name": "avr-gcc",
              "version": "7.3.0-atmel3.6.1-arduino5"
            },
            {
              "packager": "arduino",
              "name": "avrdude",
              "version": "6.3.0-arduino17"
            }
          ]
		}
      ],
      "tools":[	  
	  ]
    }
  ]
}

Move38 needs to fix checksum / size for arduino-cli to work. A potential work around could be for someone to self-host a json with the correct information.

The size is definitely wrong. The JSON says 1334106 but the actual size is 1332527. The checksum is correct though.

1 Like

Actually, you can do that yourself: Download the JSON, fix it, upload to your repository and point arduino-cli to it.

1 Like

I ended up pointing to your custom lib, and it worked. :slight_smile: I will probably try that work around, too. Just thought Move38 should be aware / fix it.

2 Likes

I’ve updated the size field in the file https://boardsmanager.com/package_move38.com-blinks_index.json to now be “1332527”.

Hopefully this resolves the issue with the Arduino CLI.

Thanks!

3 Likes