Tcl Library Source Code

View Ticket
Login
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.