Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60644de46cb801807ed8f13717157cca20d832e99bbe87382ed987540bc537f7
Ticket: a998df01f3256f79f4d7d635517130012b4001f5
Attempt to load platform package in a pkgIndex.tcl generates circular dependency error
User & Date: apnadkarni on 2022-07-04 17:08:12
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    If the `platform` package is required within a `pkgIndex.tcl` file for a package X, a circular dependency error is generated on `package require X`. The errors are:
    
    ```
    error reading package index file d:/tcl/xx/p/pkgIndex.tcl: circular package dependency: attempt to provide platform 1.0.18 requires platform
    error reading package index file d:/tcl/xx/p/pkgIndex.tcl: circular package dependency: attempt to provide platform 1.0.18 requires platform
    error reading package index file d:/tcl/xx/p/pkgIndex.tcl: circular package dependency: attempt to provide platform 1.0.18 requires platform
    .
    .
    ```
    
    This does not happen with 8.6. It also does not seem to happen if other packages are required within the `pkgIndex.tcl` e.g. the registry package or if the `platform` package is loaded beforehand.
    
    A sample testpkg is attached.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "39. Package Manager"
  14. title changed to:
    Attempt to load platform package in a pkgIndex.tcl generates circular dependency error
    
  15. type changed to: "Bug"