telebot breaks nim CI
timotheecour opened this issue · comments
Timothee Cour commented
/cc @ba0f3
shouldn't this problem have been caught by this package's own CI? (I don't have full context); after fixing this please revert nim-lang/Nim#17860
https://github.com/nim-lang/Nim/pull/17777/checks?check_run_id=2440887670
PASS: [28/35] strslice c ( 1.51 sec)
FAIL: telebot c
Test "telebot" in category "nimble-packages"
Failure: reBuildFailed
nim c -o:tbot -r src/telebot.nim
Hint: used config file '/home/runner/work/Nim/Nim/config/nim.cfg' [Conf]�
Hint: used config file '/home/runner/work/Nim/Nim/config/config.nims' [Conf]�
Hint: used config file '/home/runner/work/Nim/Nim/pkgstemp/telebot/nim.cfg' [Conf]�
...................................................
/home/runner/work/Nim/Nim/pkgstemp/telebot/src/telebot/private/types.nim(1, 8) Warning: imported and not used: 'asyncdispatch' [UnusedImport]�
.........
/home/runner/work/Nim/Nim/pkgstemp/telebot/src/telebot/private/utils.nim(56, 20) Warning: Deprecated since v1.5; Use auto instead.; any is deprecated [Deprecated]�
...
/home/runner/work/Nim/Nim/pkgstemp/telebot/src/telebot/private/api.nim(319, 158) template/generic instantiation of `async` from here
/home/runner/work/Nim/Nim/pkgstemp/telebot/src/telebot/private/api.nim(332, 9) Error: type mismatch: got <MultipartData, string, int>
but expected one of:
proc `[]=`(headers: HttpHeaders; key, value: string)
first type mismatch at position: 0
proc `[]=`(headers: HttpHeaders; key: string; value: seq[string])
first type mismatch at position: 0
proc `[]=`(p: MultipartData; name, content: string)
first type mismatch at position: 0
proc `[]=`(p: MultipartData; name: string;
file: tuple[name, contentType, content: string])
first type mismatch at position: 0
proc `[]=`(s: var string; i: BackwardsIndex; x: char)
first type mismatch at position: 0
proc `[]=`(t: StringTableRef; key, val: string)
first type mismatch at position: 0
proc `[]=`[I: Ordinal; T, S](a: T; i: I; x: sink S)
first type mismatch at position: 0
proc `[]=`[Idx, T; U, V: Ordinal](a: var array[Idx, T]; x: HSlice[U, V];
b: openArray[T])
first type mismatch at position: 0
proc `[]=`[Idx, T](a: var array[Idx, T]; i: BackwardsIndex; x: T)
first type mismatch at position: 0
proc `[]=`[T, U: Ordinal](s: var string; x: HSlice[T, U]; b: string)
first type mismatch at position: 0
proc `[]=`[T; U, V: Ordinal](s: var seq[T]; x: HSlice[U, V]; b: openArray[T])
first type mismatch at position: 0
proc `[]=`[T](s: var openArray[T]; i: BackwardsIndex; x: T)
first type mismatch at position: 0
template `[]=`(s: string; i: int; val: char)
first type mismatch at position: 0
expression: `[]=`(data, "max_tip_amount", maxTipAmount)�
PASS: [30/35] tensordsl c ( 2.85 sec)