Error decoding json payload json: cannot unmarshal number into Go struct field JobResponse.id of type int
Problem
Users are experiencing an integer overflow whilst decoding the job response on 32-bit architectures. Runner uses the type int
to represent the Job ID, which is 32-bits wide on a 32-bit arch. It should be using int64
, as we're expected to reach Job IDs above math.MaxInt32
soon.
Proposed Solution
Fix the following structs in network.go
to use int64
for the ID. The IDs in these structs are all Job/Build IDs.
UpdateJobInfo
JobResponse
Dependency
JobCredentials
Edited by Arran Walker