Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 936aba9125f37ca29d71ace7af9444367160cf6a0fa5b7923d7268006f9b61b4
Ticket: 209fd9adce08b582db292b4f1088bb57a8400d49
package files documented behaviour
User & Date: juliannoble2 on 2024-09-29 07:32:06
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    The documentation for 'package files <package>' states:
    
    "Lists all files forming part of package. Auto-loaded files are not included in this list, only files which were directly sourced during package initialization. The list order corresponds with the order in which the files were sourced."
    
    What exactly is meant by Auto-loaded files? Just those put in ::auto_index related to the package - or also those when Tcl has to scan module/library paths?
    
    On a system with no accelerators such as critcl,cryptkit or trf - and also with additional entries in ::auto_path
    
        #llength [package require md5;package files md5]
        1181
    
    (md5 package attempts to load the non-present accelerators - resulting in scanning the library paths)
    
    It is returning all the pkgIndex.tcl paths from unrelated packages
    
    I found this behaviour somewhat useful to determine when such scans are happening (as the performance impacts can be heavy) but I'd like to know if this is intentional or not - as the files are technically sourced - but the documentation could be read to infer it shouldn't return these.
    
    People testing on one system where 'package files <pkg>' returns a small set of relevant results may be surprised to get huge listings on another system, so if the behaviour as is, is correct - I think the issue should be highlighted in the docs.
    
  5. foundin changed to: "tcl9"
  6. is_private changed to: "0"
  7. login: "juliannoble2"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "957fdfcd8744611e3fe1f4896c7538b1d9bf47b2"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "juliannoble2"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "package files documented behaviour"
  16. type changed to: "Bug"