Yuxuan Wang created THRIFT-5270:
-----------------------------------

             Summary: Go library unit test is broken in go 1.15
                 Key: THRIFT-5270
                 URL: https://issues.apache.org/jira/browse/THRIFT-5270
             Project: Thrift
          Issue Type: Bug
          Components: Go - Library
    Affects Versions: 0.13.0
            Reporter: Yuxuan Wang
            Assignee: Yuxuan Wang


When running go test with go 1.15, it fails with:

{code}
./field.go:58:83: conversion from int to string yields a string of one rune, 
not a string of digits (did you mean fmt.Sprint(x)?)
./numeric.go:72:12: conversion from int64 to string yields a string of one 
rune, not a string of digits (did you mean fmt.Sprint(x)?)
./json_protocol_test.go:612:92: conversion from int to string yields a string 
of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
./simple_json_protocol_test.go:685:96: conversion from int to string yields a 
string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
{code}

This is likely a newly enabled go vet check in go 1.15 (go test auto executes 
go vet and fails if go vet fails).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to