Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2595e6bd47212831b72b6c28b304fc5aee5f9b7a832494c9c7f06568ab97c692
Ticket: 85bbfda852459a18912bcd1c131b71d0210b975d
Should [package prefer stable] prompt repeated searches?
User & Date: dgp on 2017-11-14 17:53:01
Changes

  1. icomment:
    
    The primary purpose of [package require] is to
    bring in a version of the requested package that
    satisfies the stated requirements.  In the demo
    commands above, that primary purpose is fulfilled.
    Version 1.1a0 satisfies a request for 1.0.
    
    Secondary purposes are to honor the [package prefer]
    setting, and to select later over older versions
    that all satisfy the requirement.  The documentation
    has always been vague about when you can expect the
    secondary purposes to be satisfied.  In the demo
    commands, we fail the secondary purposes. We make use
    of an alpha version even though the total system makes
    a suitable stable version available.
    
    The dilemma is that the only way to always guarantee
    the secondary purposes will be satisfied is to promise
    every [package require] call will take a trip through
    a call to the current [package unknown] handler -- just
    to be sure there's not something better.  And typical
    handler calls are expensive.
    
    In practice, we have not guaranteed the latest version
    available for just this reason, and I think we're slowly
    getting better about making that known.
    
    The open question here is whether a "stable" preference
    is different enough that it should trigger a different
    judgment. My initial reaction is that it isn't, and this
    isn't really a bug, but let's see how others react.
    
  2. login: "dgp"
  3. mimetype: "text/plain"