ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 25 forks source link

parse error: during update of git package #701

Open redstar opened 4 months ago

redstar commented 4 months ago

Running zopen upgrade -y (with meta 0.8.1) showed the following error when upgrading the git package:

Processing package: git
parse error: Invalid numeric literal at EOF at line 1, column 363
- Replacing git version '2.43.0.20231127_145951' with '2.43.0.20240117_030900'
- Downloading git-2.43.0.20240117_030900.zos.pax.Z file from remote to zopen package cache...
- Download complete.
- Processing git-2.43.0.20240117_030900.zos.pax.Z...
bc: Syntax error on line 1 of standard input
>>> scale=2;  / (1024 * 1024)
               ^
After this operation,  MB of additional disk space will be used.
- Expanding git-2.43.0.20240117_030900.zos.pax.Z
- Expanded

Several other packages were upgraded in the same run without that error message (e.g. bash, curl, meta, nano).

IgorTodorovskiIBM commented 4 months ago

"parse error: Invalid numeric literal at EOF at line 1, column 363" indicates that the zopen_releases.json file was corrupted in some way. I'll repurpose this issue so that we add some validation on zopen_releases.json before publishing and after downloading via zopen.