Tcl Library Source Code

View Ticket
Login
2026-11-15
13:36 • Ticket [cdbdd399e4] package require rest does not work with tcl8.6 status still Open with 3 other changes artifact: c9bc6c508f user: serhiy.storchaka
13:20
Fix [61e49798ee], [523f7e0556], [cdbdd399e4]: pkgIndex.tcl entries that do not match the code. nettool's index sourced nexttool.tcl, so package require nettool always failed (since tcllib 2.0); rest's index said 1.7 while rest.tcl provides 1.8; doctools::toc, math::filters and tcl::chan::std had wrong versions too. Add tests comparing the index with package provide. leaf check-in: d828c0f28f user: serhiy.storchaka tags: pkgindex-version-fixes
2025-12-03
17:08 • New ticket [cdbdd399e4] package require rest does not work with tcl8.6. artifact: 3a07459b58 user: anonymous

Ticket UUID: cdbdd399e428f82ef2f7e36dadc1a3a7bb00e401
Title: package require rest does not work with tcl8.6
Type: Bug Version: tcllib2.0
Submitter: anonymous Created on: 2025-12-03 17:08:12
Subsystem: rest Assigned To: nobody
Priority: 5 Medium Severity: Critical
Status: Open Last Modified: 2026-11-15 13:36:41
Resolution: None Closed By: nobody
    Closed on:
Description:
$ tclsh
% info patchlevel 
8.6.12
% package require rest
expected version number but got "9+"

In the pkgIndex.tcl they check for 8.5 and 9 but not 8.6.
If needed 1.7 then it will be sourced 1.8 an there is the require also Tcl 8.6 9+.
How it is with the Tcl 8.6?
User Comments: serhiy.storchaka added on 2026-11-15 13:36:41:

The Tcl 9-only requirement was fixed on trunk in [f14416cf2a]. However, package require rest still fails on trunk with every Tcl version, because pkgIndex.tcl says 1.7 while rest.tcl provides 1.8. Proposed fix in branch pkgindex-version-fixes, with a test.